Migrate kaniko build to cb-internal-shared-actions/build@v8#64
Open
cajoy wants to merge 4 commits into
Open
Conversation
Replace the kaniko@v1 + AWS/ECR login + slsa-attestation pipeline with a single calculi-corp/cb-internal-shared-actions/build@v8 (services variant) call. Move go build into the workflow via go-binary-build: "true". Refactor Dockerfile to runtime-only — alpine/scratch final + COPY of pre-built binary.
v8's Download SaaS Platform Scripts step (gated by kaniko-build + ECR) clones cloudbees/saas-platform-scripts. Without scm-token-org: read at the build job level, git-credential-cloudbees gets permission denied on the cross-org fetch.
After migrating the build to cb-internal-shared-actions/build@v8 the
image is tagged with ${{ cloudbees.version }} (e.g. 0.0.402-pr-64) plus
floating :preprod / :latest. v8 no longer pushes a per-sha tag, so the
test-* jobs that reference :${{ action.scm.sha }} fail with
image-not-found. Switch the testing action to pull the version tag.
… in action context)
Workflow validation rejects ${{ cloudbees.version }} inside composite
action context: "cloudbees.version is undefined, supported cloudbees
fields: scm". Only cloudbees.scm.* is exposed to actions.
v8 pushes :preprod (and :latest on main) as floating tags alongside the
versioned :0.0.NNN-pr-NN. Test jobs run after build in the same run, so
:preprod is the just-built image for non-main branches.
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.
Replace the kaniko@v1 + AWS/ECR login + slsa-attestation pipeline with a single
calculi-corp/cb-internal-shared-actions/build@v8(services variant) call. Move go build into the workflow viago-binary-build: true. Dockerfile slimmed to runtime-only.Generated by
/upgrade-shared-actions.