diff --git a/.woodpecker/release-version.yml b/.woodpecker/release-version.yml index efc971c471..507ae65551 100644 --- a/.woodpecker/release-version.yml +++ b/.woodpecker/release-version.yml @@ -109,6 +109,8 @@ pipeline: from_secret: domain tag: ${CI_COMMIT_TAG##v} repo: ${CI_REPO_LINK##https://} + build_args: + - CACHEBUST=${CI_PIPELINE_NUMBER} build_args_from_env: - CI_COMMIT_TAG - DEFAULTTAGNAME diff --git a/Dockerfile.ci b/Dockerfile.ci index 52bac05166..153c147386 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -12,6 +12,8 @@ RUN addgroup \ git && \ echo "git:*" | chpasswd -e +ARG CACHEBUST=1 + RUN apk --no-cache add xz upx bash && \ mkdir -p /docker/bin && \ mkdir /dist && \ @@ -27,6 +29,7 @@ ENV DEFAULTTAGNAME=${DEFAULTTAGNAME:-main} COPY docker /docker/ COPY dist /dist/ +ARG CACHEBUST=1 RUN /docker/map-binaries.sh /dist/binaries "true" forgejo ${CI_COMMIT_TAG##v} && \ /docker/map-binaries.sh /dist/contrib "false" environment-to-ini ${CI_COMMIT_TAG##v}