From 66e3f67b9ff4a3981edaeddfde77da22e999db06 Mon Sep 17 00:00:00 2001 From: Cherry Sakura Date: Tue, 31 Oct 2023 06:20:53 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitlab-ci.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a4f3ec..a4d4390 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,8 +16,7 @@ docker-build: 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 build -t "$CI_REGISTRY_IMAGE${tag}" --platform=linux/arm,linux/arm64,linux/amd64 . --push # Run this job in a branch where a Dockerfile exists rules: - if: $CI_COMMIT_BRANCH