Skip to content

Fix local image tag resolution for monorepo tags#18

Merged
amoyrtil merged 1 commit into
mainfrom
fix/local-image-tag-match
Jun 27, 2026
Merged

Fix local image tag resolution for monorepo tags#18
amoyrtil merged 1 commit into
mainfrom
fix/local-image-tag-match

Conversation

@amoyrtil

@amoyrtil amoyrtil commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Cause (Fixes #17)

The v1.13.5 build failed at the "Push images to GHCR with project naming" step:

Invalid source name docker://localhost:5000/siderolabs/imager:pkg/machinery/v1.13.5-dirty: invalid reference format

The Determine local image tag step ran git describe --tag --always --dirty without a --match filter. The v1.13.5 commit carries both a v1.13.5 and a pkg/machinery/v1.13.5 tag, and describe resolved to the latter. Its slashes make it an invalid Docker reference, and it also doesn't match the tag Talos actually pushes (v1.13.5-dirty).

Verification:

without match: pkg/machinery/v1.13.5
with match:    v1.13.5

Fix

Add the same --match 'v[0-9]*' filter that Talos's own Makefile uses (TAG := git describe --tag --always --dirty --match v[0-9]\*), so the resolved local tag stays in sync with the pushed image.

Impact

  • Single-line change in .github/workflows/build.yml (patches and scripts untouched).
  • The imager/installer GHCR push now succeeds, unblocking the downstream ISO generation, release creation, and auto-close of the patch-failure issue.
  • --match 'v[0-9]*' mirrors Talos's canonical logic, so it remains backward compatible across other versions.

🤖 Generated with Claude Code

The "Determine local image tag" step used `git describe --tag --always
--dirty` without a match filter. For v1.13.5 the commit carries both
`v1.13.5` and `pkg/machinery/v1.13.5` tags, and describe resolved to the
latter — whose slashes are an invalid Docker reference and don't match
the image Talos actually pushes.

Talos's own Makefile tags images with `git describe ... --match v[0-9]\*`,
so add the same filter here to keep the resolved tag in sync with the
pushed image (e.g. v1.13.5-dirty).

Fixes #17

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@amoyrtil amoyrtil self-assigned this Jun 27, 2026
@amoyrtil amoyrtil merged commit a432b7a into main Jun 27, 2026
5 checks passed
@amoyrtil amoyrtil deleted the fix/local-image-tag-match branch June 27, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failed for Talos v1.13.5

1 participant