retry
parent
3c9d196803
commit
e40a76a158
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue