Skip to content

Migrate kaniko build to cb-internal-shared-actions/build@v8#64

Open
cajoy wants to merge 4 commits into
mainfrom
fix-kaniko-to-shared-actions
Open

Migrate kaniko build to cb-internal-shared-actions/build@v8#64
cajoy wants to merge 4 commits into
mainfrom
fix-kaniko-to-shared-actions

Conversation

@cajoy
Copy link
Copy Markdown
Contributor

@cajoy cajoy commented May 19, 2026

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. Dockerfile slimmed to runtime-only.

Generated by /upgrade-shared-actions.

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.
@cajoy cajoy requested a review from a team as a code owner May 19, 2026 08:40
cajoy added 3 commits May 19, 2026 11:07
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.
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