Set /woodpecker as default workdir for the **woodpecker-cli** container (#4130)

This commit is contained in:
6543 2024-09-21 17:05:13 +02:00 committed by GitHub
parent 79aeb92e0c
commit 8c827be951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View file

@ -8,7 +8,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
make build-cli make build-cli
FROM docker.io/alpine:3.20 FROM docker.io/alpine:3.20
WORKDIR /woodpecker
RUN apk add -U --no-cache ca-certificates RUN apk add -U --no-cache ca-certificates
ENV GODEBUG=netdns=go ENV GODEBUG=netdns=go
ENV WOODPECKER_DISABLE_UPDATE_CHECK=true ENV WOODPECKER_DISABLE_UPDATE_CHECK=true

View file

@ -8,6 +8,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
make build-cli make build-cli
FROM scratch FROM scratch
WORKDIR /woodpecker
ENV GODEBUG=netdns=go ENV GODEBUG=netdns=go
ENV WOODPECKER_DISABLE_UPDATE_CHECK=true ENV WOODPECKER_DISABLE_UPDATE_CHECK=true

View file

@ -4,6 +4,7 @@ Some versions need some changes to the server configuration or the pipeline conf
## `next` ## `next`
- Set `/woodpecker` as defautl workdir for the **woodpecker-cli** container
- Removed built-in environment variables: - Removed built-in environment variables:
- `CI_COMMIT_URL` use `CI_PIPELINE_FORGE_URL` - `CI_COMMIT_URL` use `CI_PIPELINE_FORGE_URL`
- `CI_STEP_FINISHED` as empty during execution - `CI_STEP_FINISHED` as empty during execution