From 31ce5c5bbdb0e25209adaa2e17825849207c2314 Mon Sep 17 00:00:00 2001 From: ngovinh2k2 Date: Fri, 13 Feb 2026 09:38:13 +0700 Subject: [PATCH] fix: promote stable incorrect --- .github/workflows/cd-build-image.yml | 2 -- .github/workflows/cd-promote-stable.yml | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-build-image.yml b/.github/workflows/cd-build-image.yml index 644c217..877ef28 100644 --- a/.github/workflows/cd-build-image.yml +++ b/.github/workflows/cd-build-image.yml @@ -44,8 +44,6 @@ jobs: images: ghcr.io/${{ github.repository }} tags: | type=semver,pattern={{version}},value=${{ github.event.release.tag_name }} - type=semver,pattern={{major}}.{{minor}},value=${{ github.event.release.tag_name }} - type=semver,pattern={{major}},value=${{ github.event.release.tag_name }} # Build & Push image - name: Build & Push Docker image diff --git a/.github/workflows/cd-promote-stable.yml b/.github/workflows/cd-promote-stable.yml index 1ab8307..e6d2027 100644 --- a/.github/workflows/cd-promote-stable.yml +++ b/.github/workflows/cd-promote-stable.yml @@ -25,8 +25,10 @@ jobs: - name: Promote version to stable run: | IMAGE=ghcr.io/${{ github.repository }} + IMAGE=$(echo "$IMAGE" | tr '[:upper:]' '[:lower:]') VERSION=${{ inputs.version }} docker buildx imagetools create \ - -t $IMAGE:stable \ - $IMAGE:$VERSION + --tag $IMAGE:stable \ + --prefer-index \ + $IMAGE:$VERSION \ No newline at end of file