feat: add static base image build for Tekton Go binaries#3221
Open
waveywaves wants to merge 1 commit intotektoncd:mainfrom
Open
feat: add static base image build for Tekton Go binaries#3221waveywaves wants to merge 1 commit intotektoncd:mainfrom
waveywaves wants to merge 1 commit intotektoncd:mainfrom
Conversation
Add apko-based build for a multi-arch static base image supporting amd64, arm64, s390x, and ppc64le. This replaces the dependency on cgr.dev/chainguard/static which is pinned to an EOL Alpine 3.18 digest and whose free tier dropped s390x/ppc64le support. The image contains CA certificates, timezone data, nsswitch.conf, and a nonroot user (UID 65532). A weekly GitHub Actions workflow rebuilds and publishes to ghcr.io/tektoncd/plumbing/static-base. All Tekton repos (pipeline, triggers, chains, results) can reference this as their defaultBaseImage in .ko.yaml. Related: tektoncd/pipeline#9557
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
waveywaves
added a commit
to waveywaves/tekton-pipeline
that referenced
this pull request
Mar 15, 2026
The apko build and CI workflow belong in tektoncd/plumbing since all Tekton repos need the same base image. Update .ko.yaml and publish.yaml to reference ghcr.io/tektoncd/plumbing/static-base instead. See: tektoncd/plumbing#3221
8 tasks
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.
Changes
Add apko-based build for a multi-arch static base image supporting amd64, arm64, s390x, and ppc64le.
Why: All Tekton repos currently depend on
cgr.dev/chainguard/staticwhich is pinned to an EOL Alpine 3.18 digest from Nov 2023. The Chainguard free tier dropped s390x/ppc64le support, so bumping the digest breaks release builds. Building our own image gives us control over architecture coverage and update cadence.What this adds:
images/static-base/apko.yaml— declarative image definition, builds a ~300KB static base per arch with CA certs, timezone data, and nonroot user.github/workflows/build-static-base-image.yaml— weekly CI to rebuild and publish toghcr.io/tektoncd/plumbing/static-baseimages/static-base/README.md— documents contents, build instructions, and consumersConsumers: tektoncd/pipeline, tektoncd/triggers, tektoncd/chains, tektoncd/results — all can reference
ghcr.io/tektoncd/plumbing/static-baseas theirdefaultBaseImagein.ko.yaml.Related: tektoncd/pipeline#9557
/kind feature
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them: