Skip to content

ci: publish release images, charts and previews through coder/ghcr-publisher (2.34) - #32584

Merged
kylecarbs merged 2 commits into
release/2.34from
backport-ghcr-2.34
Nov 22, 2026
Merged

kylecarbs merged 2 commits into
release/2.34from
backport-ghcr-2.34

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

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)

  • The base image, the coder image and the Helm charts go to the *-staging packages. Digests come from each push's response, never from reading a staging tag back.
  • Each gets a release attestation (https://coder.com/attestations/release/v1) naming the version, the tag's commit and the public package.
  • A coder-ghcr-dispatch token sends one repository_dispatch to coder/ghcr-publisher and is revoked right after. The publisher checks the attestations and the approved release run, copies by digest, and moves latest only for the highest stable version.
  • 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 slot (coder/ghcr-publisher#3).

ci.yaml (build job: this branch predates build.yaml)

  • Preview images go to coder-preview-staging with a preview attestation. The publisher then publishes <version> and release-2.34 to coder-preview.
  • The SBOM, attestation and prune steps that only run on main are dropped. They can never run from a release branch's file.
  • The dispatch token is also revoked in an always() step, since release branches cancel an in-progress run when a newer push arrives.

Merge after

  • coder/gcp#488 merged and applied (lets ci.yaml in ci-signing sign as coder-ghcr-dispatch)
  • coder/ghcr-publisher#3 merged (accepts this branch's ci.yaml as the preview signer, from push runs; allows pre-2.37 releases without an ai-gateway chart)

Not changed: pr-deploy.yaml still pushes coder-preview:pr<N> when triggered by hand; that stops working once coder/coder is Read on coder-preview. PR deployments were removed from main in #31757. deploy.yaml's :dogfood retag never runs on release branches (should_deploy.sh answers 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

…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]>
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @kylecarbs!

This PR is targeting the release/2.34 release branch, but its title does not start with fix: or fix(scope):.

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:

fix: description of the bug fix
fix(scope): description of the bug fix

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]>
@kylecarbs
kylecarbs marked this pull request as ready for review November 22, 2026 17:33
@kylecarbs
kylecarbs requested a review from a team November 22, 2026 17:33
@kylecarbs
kylecarbs merged commit 1a4e63d into release/2.34 Nov 22, 2026
40 of 41 checks passed
@kylecarbs
kylecarbs deleted the backport-ghcr-2.34 branch November 22, 2026 20:10

This branch had an error being deployed

1 failed deployment
docs-preview — ddcafa55 Deployed Nov 22, 2026 by kylecarbs via cleanup #329
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.

2 participants