From 08cab1679e134c9a0bff07299e56d8c120ede974 Mon Sep 17 00:00:00 2001 From: "Alexander Nicholson 4584443+DragonStuff@users.noreply.github.com" <4584443+DragonStuff@users.noreply.github.com> Date: Wed, 10 Sep 2025 04:16:00 +0900 Subject: [PATCH] fix: final tag release --- .github/workflows/publish-image.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 66e4f65..2701aa0 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -167,17 +167,22 @@ jobs: while IFS= read -r tag; do [ -z "$tag" ] && continue echo "Creating manifest for $tag" + src_tag="$tag" + if [[ "$tag" == *:latest && "${GITHUB_REF}" == refs/tags/* ]]; then + ref="${GITHUB_REF#refs/tags/}" + src_tag="${tag%:latest}:$ref" + fi if [ -n "${IMAGE_DESCRIPTION:-}" ]; then docker buildx imagetools create \ --tag "$tag" \ --annotation "index:org.opencontainers.image.description=${IMAGE_DESCRIPTION}" \ - "${tag}-amd64" \ - "${tag}-arm64" + "${src_tag}-amd64" \ + "${src_tag}-arm64" else docker buildx imagetools create \ --tag "$tag" \ - "${tag}-amd64" \ - "${tag}-arm64" + "${src_tag}-amd64" \ + "${src_tag}-arm64" fi done <<< "$tags"