mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Build multi-arch image.
This will build only those architectures that we have runners to build on
This commit is contained in:
parent
5ee90a78b4
commit
0e593edc9a
1 changed files with 22 additions and 0 deletions
|
@ -320,4 +320,26 @@ merge-manifests:
|
||||||
--platforms linux/amd64,linux/arm64,linux/s390x
|
--platforms linux/amd64,linux/arm64,linux/s390x
|
||||||
--template "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}_ARCH"
|
--template "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}_ARCH"
|
||||||
--target "${CI_REGISTRY_IMAGE}:${TAG}"
|
--target "${CI_REGISTRY_IMAGE}:${TAG}"
|
||||||
|
--destination "${CI_REGISTRY_IMAGE}:${TAG}_${ARCH}"
|
||||||
|
|
||||||
|
merge-manifests:
|
||||||
|
variables:
|
||||||
|
TAG: latest
|
||||||
|
stage: container-build
|
||||||
|
needs:
|
||||||
|
- job: build-container
|
||||||
|
artifacts: false
|
||||||
|
image:
|
||||||
|
name: mplatform/manifest-tool:alpine
|
||||||
|
entrypoint: [""]
|
||||||
|
script:
|
||||||
|
- if [ -n "$CI_COMMIT_TAG" ]; then export TAG="$CI_COMMIT_TAG"; fi
|
||||||
|
- >-
|
||||||
|
manifest-tool
|
||||||
|
--username="${CI_REGISTRY_USER}"
|
||||||
|
--password="${CI_REGISTRY_PASSWORD}"
|
||||||
|
push from-args
|
||||||
|
--platforms linux/amd64,linux/arm64,linux/s390x
|
||||||
|
--template "${CI_REGISTRY_IMAGE}:${TAG}_ARCH"
|
||||||
|
--target "${CI_REGISTRY_IMAGE}:${TAG}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue