image: docker.io/centos:8 stages: - build - manifest variables: TAG: devel aarch64: stage: build tags: - aarch64 script: - ./configure-mirror - ./configure-podman - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - podman build --tag $CI_REGISTRY_IMAGE:${TAG}-aarch64 . - podman push $CI_REGISTRY_IMAGE:${TAG}-aarch64 x86_64: stage: build script: - ./configure-mirror - ./configure-podman - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - podman build --tag $CI_REGISTRY_IMAGE:${TAG}-x86_64 . - podman push $CI_REGISTRY_IMAGE:${TAG}-x86_64 manifest: stage: manifest script: - ./configure-mirror - ./configure-podman - buildah login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - 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}