Skip to content

ci: tag PR builds with the branch name again - #251

Merged
samcm merged 1 commit into
masterfrom
pr-build-branch-tags
Nov 24, 2026
Merged

samcm merged 1 commit into
masterfrom
pr-build-branch-tags

Conversation

@samcm

@samcm samcm commented Nov 24, 2026

Copy link
Copy Markdown
Member

Labelled PR builds are tagged with the branch name again (/ becomes -), as before the move to GHCR, instead of pr-<number>. A branch name that is not a valid tag, or would take a reserved one (master, main, latest, pr…, or a release-like v1…/1…, with or without a -suffix), falls back to pr-<number>.

Checked by running the changed step with branch names such as pk910/blob-v2 → pk910-blob-v2, glamsterdam-devnet-7 → same, and master, main-fix, latest, pr-99, v2-fix, 1.2.3, feat+x, a 120-char name → pr-<number>. Manual dispatch tags are unchanged. actionlint: no new findings.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restores branch-name derived docker tags for labelled PR builds, falling back to pr-<number> for invalid or reserved names, and moves the guard ahead of the invalid-branch skip. The guard matches the tags the master/release workflows actually publish, the regex excludes every character that could break the additional_tags JSON/shell interpolation downstream, and PR-number tags remain reserved. I found nothing wrong with it.


Reviewed 1 changed file(s) @ 7f8751e3 — no blocking issues found.
"It's not a bug, it's an undocumented feature." — anonymous

@samcm
samcm merged commit 6dd8465 into master Nov 24, 2026
6 checks passed
@samcm
samcm deleted the pr-build-branch-tags branch November 24, 2026 03:07
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.

2 participants