From 85eadc877f41f55e249820a604ea901b6db12342 Mon Sep 17 00:00:00 2001 From: TJ Striker Date: Fri, 23 Oct 2026 11:45:29 -0500 Subject: [PATCH] ci: tag static builder images with the release version The prepare job only resolved the version on scheduled runs, so tag pushes and dispatches on a tag computed the image tags with VERSION=dev and never pushed static-builder-{musl,gnu}-X.Y.Z. Also drop the stale -gnu suffix in the GNU inspect step, which was inspecting a leftover static-builder-gnu-gnu image instead of the one just pushed. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/static.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml index 5eb066a9f1..79e737cb61 100644 --- a/.github/workflows/static.yaml +++ b/.github/workflows/static.yaml @@ -73,7 +73,7 @@ jobs: } >> "${GITHUB_OUTPUT}" env: SHA: ${{ github.sha }} - VERSION: ${{ steps.check.outputs.ref || 'dev' }} + VERSION: ${{ (github.ref_type == 'tag' && github.ref_name) || steps.check.outputs.ref || 'dev' }} build-linux-musl: permissions: @@ -457,7 +457,7 @@ jobs: - name: Inspect GNU image run: | # shellcheck disable=SC2046,SC2086 - docker buildx imagetools inspect "$(jq -cr '.target."static-builder-gnu".tags | first' <<< "${GNU_METADATA}")-gnu" + docker buildx imagetools inspect "$(jq -cr '.target."static-builder-gnu".tags | first' <<< "${GNU_METADATA}")" env: GNU_METADATA: ${{ needs.prepare.outputs.gnu_metadata }}