retry
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 20:39:58 +01:00
parent 3c9d196803
commit e40a76a158
2 changed files with 29 additions and 30 deletions

View File

@ -69,31 +69,6 @@ pipeline:
secrets:
- goproxy_override
build-docker:
image: *buildx_plugin_image
pull: true
environment:
defaulttagname: main
settings:
dockerfile: Dockerfile.ci
no_cache: true
platforms: *docker_platforms
registry:
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
password:
from_secret: releaseteamtoken
username:
from_secret: releaseteamuser
when:
event: tag
gpg-sign:
image: *gpgsign_plugin_image
pull: true
@ -123,3 +98,30 @@ pipeline:
secrets:
- releaseteamtoken
- releaseteamuser
build-docker:
image: *buildx_plugin_image
pull: true
environment:
defaulttagname: main
settings:
dockerfile: Dockerfile.ci
no_cache: true
platforms: *docker_platforms
registry:
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
password:
from_secret: releaseteamtoken
username:
from_secret: releaseteamuser
when:
event: tag

View File

@ -1,5 +1,5 @@
FROM alpine:3.17.0 as prep
FROM --platform=$BUILDPLATFORM alpine:3.17.0 as prep
ARG BUILDPLATFORM
RUN addgroup \
-S -g 1000 \
git && \
@ -12,8 +12,6 @@ RUN addgroup \
git && \
echo "git:*" | chpasswd -e
ARG CACHEBUST=1
RUN apk --no-cache add bash && \
mkdir -p /docker/bin && \
mkdir /dist
@ -27,7 +25,6 @@ ENV DEFAULTTAGNAME=${DEFAULTTAGNAME:-main}
COPY docker /docker/
COPY dist /dist/
ARG CACHEBUST=1
RUN /docker/map-binaries.sh /dist/binaries forgejo ${CI_COMMIT_TAG##v} && \
/docker/map-binaries.sh /dist/contrib environment-to-ini ${CI_COMMIT_TAG##v}