aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2024-02-06 09:38:22 -0500
committermicah <micah@torproject.org>2024-03-03 14:07:33 +0000
commit0e593edc9afd5e14043e21675a84fc44a0ea32ab (patch)
tree2fd3f0044469a5106fe2513070acf93b996ab4aa
parent5ee90a78b40057e0716f1fdb098a7156d22786de (diff)
downloadsnowflake-0e593edc9afd5e14043e21675a84fc44a0ea32ab.tar.gz
snowflake-0e593edc9afd5e14043e21675a84fc44a0ea32ab.zip
Build multi-arch image.
This will build only those architectures that we have runners to build on
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 83929ff..14c7709 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -320,4 +320,26 @@ merge-manifests:
--platforms linux/amd64,linux/arm64,linux/s390x
--template "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}_ARCH"
--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}"