From 594ff505bd7eb84201104ce2dc9ad23e33ab1fa0 Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Wed, 6 Sep 2023 18:30:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0manifest=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c536fb3..2b1239a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,13 +50,13 @@ build-amd64: - docker buildx build --platform=linux/amd64 --pull -t "$IMG_URL$IMG_TAG-linux-amd64" . --push - docker rmi "$IMG_URL$IMG_TAG-linux-amd64" +# 生成多架构制品,并在上传后删除本地文件 build-artifact: stage: build needs: [build-amd64, build-arm64] script: - docker manifest create "$IMG_URL$IMG_TAG" "$IMG_URL$IMG_TAG-linux-arm64" "$IMG_URL$IMG_TAG-linux-amd64" - - docker manifest push "$IMG_URL$IMG_TAG" - - docker manifest rm "$IMG_URL$IMG_TAG" + - docker manifest push -p "$IMG_URL$IMG_TAG" # 测试阶段任务 test: