aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0c3bc9b..a2b6b52 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,9 @@ stages:
- build
- manifest
+variables:
+ TAG: devel
+
aarch64:
stage: build
tags:
@@ -12,8 +15,8 @@ aarch64:
- ./configure-mirror
- ./configure-podman
- podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- - podman build --tag $CI_REGISTRY_IMAGE:aarch64 .
- - podman push $CI_REGISTRY_IMAGE:aarch64
+ - podman build --tag $CI_REGISTRY_IMAGE:${TAG}-aarch64 .
+ - podman push $CI_REGISTRY_IMAGE:${TAG}-aarch64
x86_64:
stage: build
@@ -21,8 +24,8 @@ x86_64:
- ./configure-mirror
- ./configure-podman
- podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- - podman build --tag $CI_REGISTRY_IMAGE:x86_64 .
- - podman push $CI_REGISTRY_IMAGE:x86_64
+ - podman build --tag $CI_REGISTRY_IMAGE:${TAG}-x86_64 .
+ - podman push $CI_REGISTRY_IMAGE:${TAG}-x86_64
manifest:
stage: manifest
@@ -30,7 +33,7 @@ manifest:
- ./configure-mirror
- ./configure-podman
- buildah login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- - buildah manifest create manifest
- - buildah manifest add manifest docker://$CI_REGISTRY_IMAGE:aarch64
- - buildah manifest add manifest docker://$CI_REGISTRY_IMAGE:x86_64
- - buildah manifest push manifest docker://$CI_REGISTRY_IMAGE:multiarch
+ - buildah manifest create ${TAG}
+ - buildah manifest add ${TAG} docker://$CI_REGISTRY_IMAGE:${TAG}-aarch64
+ - buildah manifest add ${TAG} docker://$CI_REGISTRY_IMAGE:${TAG}-x86_64
+ - buildah manifest push ${TAG} docker://$CI_REGISTRY_IMAGE:${TAG}