From 8c827be95124c2cf280c34724c2163c204b88079 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 21 Sep 2024 17:05:13 +0200 Subject: [PATCH] Set `/woodpecker` as default workdir for the **woodpecker-cli** container (#4130) --- docker/Dockerfile.cli.alpine.multiarch | 3 +++ docker/Dockerfile.cli.multiarch | 2 ++ docs/docs/91-migrations.md | 1 + 3 files changed, 6 insertions(+) diff --git a/docker/Dockerfile.cli.alpine.multiarch b/docker/Dockerfile.cli.alpine.multiarch index 53b8da12c..de5fd0688 100644 --- a/docker/Dockerfile.cli.alpine.multiarch +++ b/docker/Dockerfile.cli.alpine.multiarch @@ -8,7 +8,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ make build-cli FROM docker.io/alpine:3.20 +WORKDIR /woodpecker + RUN apk add -U --no-cache ca-certificates + ENV GODEBUG=netdns=go ENV WOODPECKER_DISABLE_UPDATE_CHECK=true diff --git a/docker/Dockerfile.cli.multiarch b/docker/Dockerfile.cli.multiarch index fcb5f95d9..2e1a7009f 100644 --- a/docker/Dockerfile.cli.multiarch +++ b/docker/Dockerfile.cli.multiarch @@ -8,6 +8,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ make build-cli FROM scratch +WORKDIR /woodpecker + ENV GODEBUG=netdns=go ENV WOODPECKER_DISABLE_UPDATE_CHECK=true diff --git a/docs/docs/91-migrations.md b/docs/docs/91-migrations.md index 05c97d738..2d1870276 100644 --- a/docs/docs/91-migrations.md +++ b/docs/docs/91-migrations.md @@ -4,6 +4,7 @@ Some versions need some changes to the server configuration or the pipeline conf ## `next` +- Set `/woodpecker` as defautl workdir for the **woodpecker-cli** container - Removed built-in environment variables: - `CI_COMMIT_URL` use `CI_PIPELINE_FORGE_URL` - `CI_STEP_FINISHED` as empty during execution