From f8990dbb972448009fb587bca2f637e31b2dc48a Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Mon, 23 May 2022 22:11:56 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ccf4f6..e622ee8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,11 @@ docker-build: # Use the official docker image. - image: jonoh/docker-buildx-qemu + image: docker:latest + tags: + - docker + - arm64 + - linux stage: build services: - docker:dind @@ -28,8 +32,8 @@ docker-build: tag=":$CI_COMMIT_REF_SLUG" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" fi - - docker buildx create --use - - docker buildx build --push --platform linux/arm/v7,linux/386,linux/amd64 --tag "$CI_REGISTRY_IMAGE${tag}" . + - docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" . + - docker push "$CI_REGISTRY_IMAGE${tag}" # Run this job in a branch where a Dockerfile exists rules: - if: $CI_COMMIT_BRANCH