From 8452faf6a29c3f8d22264bd29da23016e39ed9c3 Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 6 Jan 2022 17:38:56 +0100 Subject: [PATCH] Multi ARCH Build --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfbd5ed..6a90cf1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,8 +44,11 @@ docker-build-prod: tag=":$CI_COMMIT_REF_SLUG" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" fi - - docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" . - - docker push "$CI_REGISTRY_IMAGE${tag}" + - docker-buildx create --use + - docker-buildx build + --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 + --tag $CI_REGISTRY_IMAGE${tag} + --push except: - merge_requests