build: migrate to docker/github-builder reusable workflows#206
Open
Soner (shyim) wants to merge 6 commits intomainfrom
Open
build: migrate to docker/github-builder reusable workflows#206Soner (shyim) wants to merge 6 commits intomainfrom
Soner (shyim) wants to merge 6 commits intomainfrom
Conversation
Replace custom build-bake-publish composite action with docker/github-builder bake.yml reusable workflow. This brings SLSA provenance attestations, Cosign signing, and standardized Docker-maintained build infrastructure. - Consolidate changed-files detection into a single job - Remove Namespace Labs cloud builder dependency - Use registry-auths secret for Docker Hub and GHCR auth - Pass imageSuffix/tagPrefix via bake vars input - Simplify conditional logic in check/dev-check jobs
The github-builder bake workflow resolves targets by name, but matrix-expanded targets (e.g. fpm) only produce individual targets like fpm-8-2, fpm-8-3, etc. Add explicit group blocks so the original target names resolve to all their matrix variants.
github-builder enforces exactly one concrete target per workflow call. Move PHP version matrix to the workflow level and pass individual target names (e.g. fpm-8-3) instead of group names. Remove now-unnecessary group blocks from docker-bake.hcl.
With distribute: false, github-builder runs on a single amd64 runner and ignores platform definitions. Setting distribute: true creates a matrix entry per platform, building arm64 on native arm runners.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build-bake-publishcomposite action withdocker/github-builder/.github/workflows/bake.yml@v1reusable workflowchangesjob instead of duplicating in every build jobChanges
.github/action/build-bake-publish/action.yml.github/workflows/build.ymlto use reusable workflow callsregistry-authsYAML secret formatimageSuffix/tagPrefixpassed via bakevarsinputcheckanddev-checkjobsTest plan
-ci-testsuffix for PRsdev-checkandcheckjobs pass against built images