From 78047d1b382fa51cc67d19d8913864239f618ed2 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 31 May 2026 22:16:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E5=8C=96]=20=E6=9B=B4=E6=96=B0=20doc?= =?UTF-8?q?ker-image.yml=EF=BC=8C=E8=B0=83=E6=95=B4=E6=B5=AE=E5=8A=A8?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=80=BB=E8=BE=91=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=20beta=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 80770c01..9e36ac5d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -172,9 +172,15 @@ jobs: exit 1 fi + if [[ "${VERSION}" =~ (alpha|beta|rc) ]]; then + FLOATING_TAG="beta" + else + FLOATING_TAG="latest" + fi + docker buildx imagetools create \ -t "${IMAGE}:${VERSION}" \ - -t "${IMAGE}:latest" \ + -t "${IMAGE}:${FLOATING_TAG}" \ "${references[@]}" - name: Inspect image @@ -335,9 +341,15 @@ jobs: exit 1 fi + if [[ "${VERSION}" =~ (alpha|beta|rc) ]]; then + FLOATING_TAG="beta" + else + FLOATING_TAG="latest" + fi + docker buildx imagetools create \ -t "${IMAGE}:${VERSION}" \ - -t "${IMAGE}:latest" \ + -t "${IMAGE}:${FLOATING_TAG}" \ "${references[@]}" - name: Inspect image