next
ci/woodpecker/push/compliance-and-tests Pipeline is pending Details
ci/woodpecker/push/release-version Pipeline is pending Details
ci/woodpecker/tag/compliance-and-tests Pipeline was successful Details
ci/woodpecker/tag/release-version Pipeline failed Details

ci-optimization
gapodo 2022-12-05 03:32:18 +01:00
parent 19f72ce725
commit a5c2f16b0f
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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}