Skip to content

build/bake: add reusable workflow job name prefix#249

Merged
crazy-max merged 2 commits into
docker:mainfrom
crazy-max:job-name-prefix
Jul 8, 2026
Merged

build/bake: add reusable workflow job name prefix#249
crazy-max merged 2 commits into
docker:mainfrom
crazy-max:job-name-prefix

Conversation

@crazy-max

Copy link
Copy Markdown
Member

relates to https://github.com/docker/packaging/actions/runs/28931486137/job/85831553565

run
├─ prepare
├─ prepare
├─ build (0, linux/amd64, ubuntu-24.04)
├─ build (1, linux/arm64, ubuntu-24.04-arm)
├─ finalize
├─ prepare
├─ build (0, linux/amd64, ubuntu-24.04)
├─ build (1, linux/arm64, ubuntu-24.04-arm)
├─ finalize
├─ prepare
├─ build (0, linux/amd64, ubuntu-24.04)
├─ build (1, linux/arm64, ubuntu-24.04-arm)
├─ finalize
├─ prepare
├─ build (0, linux/amd64, ubuntu-24.04)
├─ build (1, linux/arm64, ubuntu-24.04-arm)
├─ finalize
├─ prepare
├─ build (0, linux/amd64, ubuntu-24.04)
├─ build (1, linux/arm64, ubuntu-24.04-arm)
├─ finalize
├─ prepare
├─ build (0, linux/amd64, ubuntu-24.04)
├─ build (1, linux/arm/v7, ubuntu-24.04-arm)
├─ build (2, linux/arm64, ubuntu-24.04-arm)
└─ finalize

This adds an optional job-name-prefix input to the build and bake reusable workflows so callers can disambiguate nested reusable workflow jobs in the GitHub Actions UI.

The build and bake workflows now use the prefix when naming their internal prepare, build, and finalize jobs, while preserving the existing job names when the input is not set.

GitHub Actions flattens jobs from nested reusable workflows, which makes repeated prepare, build, and finalize jobs hard to scan when a caller fans out across many targets. This keeps the default behavior stable while giving callers a simple opt-in way to make those jobs readable.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the job-name-prefix branch 2 times, most recently from 9f58e3a to b06daac Compare July 8, 2026 10:04
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max marked this pull request as ready for review July 8, 2026 10:10
@crazy-max crazy-max requested a review from a team as a code owner July 8, 2026 10:10
@crazy-max crazy-max merged commit c4a1b21 into docker:main Jul 8, 2026
171 checks passed
@crazy-max crazy-max deleted the job-name-prefix branch July 8, 2026 10:11
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.

1 participant