Skip to content

github-builder helpers - #1333

Merged
crazy-max merged 4 commits into
docker:mainfrom
crazy-max:github-builder-helpers
Sep 18, 2026
Merged

crazy-max merged 4 commits into
docker:mainfrom
crazy-max:github-builder-helpers

Conversation

@crazy-max

@crazy-max crazy-max commented Sep 18, 2026

Copy link
Copy Markdown
Member

This adds helpers under src/github-builder/ so the reusable workflows can replace inline parsing and validation with shared, independently testable implementations. Workflow inputs, outputs, authentication steps, and job orchestration remain in YAML.

BuildSecrets consolidates secret parsing, masking, temporary-file creation, and cleanup from the build and bake workflows. It produces file-backed action inputs without exporting secret values to the job-wide environment.

RunnerMapping extracts the runner parsing and platform-prefix resolution duplicated in build and bake, preserving deprecated aliases, warnings, and matching precedence.

RegistryIdentities extracts provider validation and normalization from setup-registry-identities, preserving required fields, defaults, and duplicate-provider restrictions while avoiding input excerpts in YAML parse errors.

BakeTargets extracts the Bake target-graph validation. Generic named-context traversal lives in Bake.resolveContextTargets(), while github-builder’s single-root restriction remains in the workflow-specific helper.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max force-pushed the github-builder-helpers branch from 170956c to d0a8af1 Compare September 18, 2026 10:14
@crazy-max
crazy-max marked this pull request as ready for review September 18, 2026 10:34
@crazy-max
crazy-max merged commit e4795c8 into docker:main Sep 18, 2026
117 checks passed
@crazy-max
crazy-max deleted the github-builder-helpers branch September 18, 2026 16:51
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