From f3f018ca9677a2ecc8775a60ea8c77b13c944fc1 Mon Sep 17 00:00:00 2001 From: yokowu <18836617@qq.com> Date: Fri, 8 Aug 2025 17:57:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=B7=B2=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=20docker=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend-ci-cd.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/backend-ci-cd.yml b/.github/workflows/backend-ci-cd.yml index 2c23bfb..e9704b8 100644 --- a/.github/workflows/backend-ci-cd.yml +++ b/.github/workflows/backend-ci-cd.yml @@ -196,6 +196,12 @@ jobs: run: | VERSION=${{ needs.build.outputs.version }} + # Clean up any existing manifests (ignore errors if they don't exist) + docker manifest rm ${{ env.REGISTRY }}/backend:${VERSION} || true + docker manifest rm ${{ env.REGISTRY }}/backend:latest || true + docker manifest rm ${{ env.REGISTRY }}/scanner:${VERSION} || true + docker manifest rm ${{ env.REGISTRY }}/scanner:latest || true + # Create and push backend version manifest docker manifest create ${{ env.REGISTRY }}/backend:${VERSION} \ ${{ env.REGISTRY }}/backend:${VERSION}-x86_64 \