Repository navigation
ci: publish release images, charts and previews through coder/ghcr-publisher (2.34) - #32584
Merged
Merged
Conversation
…blisher (2.34) Backport of #32566 and #32571 for release/2.34. release.yaml: images and charts go to the *-staging packages, by digest from the push responses; each gets a release attestation naming its version, commit and public package; coder-ghcr-dispatch triggers coder/ghcr-publisher, which verifies and copies them (and moves latest). The tagging token is revoked as soon as the tag exists. 2.34 has no ai-gateway chart, so only the coder and provisioner charts are promoted; the publisher skips the empty ai-gateway slot. ci.yaml (build job; this branch predates build.yaml): coder-preview builds go to coder-preview-staging with a preview attestation, and ghcr-publisher publishes the version and release-2.34 tags. Drops the main-only SBOM, attestation and prune steps, which never run on a release branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
👋 Hey @kylecarbs! This PR is targeting the Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format: If this is not a bug fix, it likely should not target a release branch. |
Release branches cancel an in-progress ci.yaml run when a newer push arrives. If that happens between minting the coder-ghcr-dispatch token and the revoke in "Promote", revoke it in an always() step instead of leaving it valid for up to an hour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sreya
approved these changes
Nov 22, 2026
kylecarbs
had a problem deploying
to
docs-preview
November 22, 2026 20:10 — with
GitHub Actions
Failure
This branch had an error being deployed
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.
Backport of #32566 (release images and charts) and #32571 (coder-preview) to
release/2.34. Once coder/coder can only read the public packages, this branch's release and preview builds can't push to them directly.release.yaml (same change as #32566; on 2.38–2.34 it applied 3-way, with conflicts only in pinned action versions)
*-stagingpackages. Digests come from each push's response, never from reading a staging tag back.https://coder.com/attestations/release/v1) naming the version, the tag's commit and the public package.coder-ghcr-dispatchtoken sends onerepository_dispatchto coder/ghcr-publisher and is revoked right after. The publisher checks the attestations and the approvedreleaserun, copies by digest, and moveslatestonly for the highest stable version.ci.yaml (
buildjob: this branch predatesbuild.yaml)coder-preview-stagingwith a preview attestation. The publisher then publishes<version>andrelease-2.34tocoder-preview.mainare dropped. They can never run from a release branch's file.always()step, since release branches cancel an in-progress run when a newer push arrives.Merge after
ci.yamlinci-signingsign ascoder-ghcr-dispatch)ci.yamlas the preview signer, from push runs; allows pre-2.37 releases without an ai-gateway chart)Not changed:
pr-deploy.yamlstill pushescoder-preview:pr<N>when triggered by hand; that stops working once coder/coder is Read oncoder-preview. PR deployments were removed frommainin #31757.deploy.yaml's:dogfoodretag never runs on release branches (should_deploy.shanswers NOOP).actionlint and zizmor are clean. An independent review of all five backports and coder/ghcr-publisher#3 found nothing that breaks end to end; its points are addressed (here: the token revoke; the rest in the publisher). Nothing here has run yet; the first push to this branch after merge exercises the preview path, and the next patch release the release path.
🤖 Generated with Claude Code