chore(release): GoReleaser + release workflow + Terraform Registry publishing runbook - #22
Merged
Merged
Conversation
…ng runbook Wire up Terraform Registry publishing so a `v*` tag produces a signed release: - .goreleaser.yml — cross-builds every platform binary with the version ldflag, zips them, checksums with SHA256, GPG-signs the checksums, and bundles terraform-registry-manifest.json into the release (validated with `goreleaser check` against the v2.5 line). - .github/workflows/release.yml — on a `v*` tag, imports the org GPG key and runs GoReleaser (pinned to the ~> v2.5 line to match the config syntax). - test.yml — add a `goreleaser check` job so release-config drift is caught in PRs, not at release time. - RELEASING.md — runbook for the one-time setup (GPG key, GitHub secrets, make repo public, register on the Terraform Registry) and the per-release flow (changelog, tag, verify). - .gitignore — never commit exported key material (*.asc, *.gpg). No provider code changes; the registry manifest and main.go version wiring were already in place.
PF9-pushkar
added a commit
that referenced
this pull request
Jul 14, 2026
chore(release): GoReleaser + release workflow + Terraform Registry publishing runbook
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.
Summary
Wires up Terraform Registry publishing so a
v*tag produces a signed, registry-ingestible release. This is the release-tooling portion of Phase 3 — no provider code changes..goreleaser.yml— cross-builds a binary for every registry-supportedgoos/goarchwith themain.versionldflag, zips them, generatesSHA256SUMS, GPG-signs the checksums, and bundlesterraform-registry-manifest.json(protocol 6.0) into the release. Validated locally withgoreleaser checkand a single-target snapshot build..github/workflows/release.yml— on av*tag: imports the org GPG key and runs GoReleaser (pinned to the~> v2.5line so the action's GoReleaser matches the config syntax).test.yml— adds agoreleaser checkjob so release-config drift is caught in PRs, not at release time.RELEASING.md— the runbook:GPG_PRIVATE_KEY/PASSPHRASEGitHub secrets, make the repo public, register the provider + upload the public key on registry.terraform.io.git tag vX.Y.Z && git push, watch the workflow, verify on the registry withterraform init..gitignore— never commit exported key material (*.asc,*.gpg).The
terraform-registry-manifest.jsonandmain.go's version wiring / registry address (registry.terraform.io/platform9/pcd) were already in place.What this PR does NOT do
The actual publishing actions are intentionally left to a human and documented in
RELEASING.md, because they're outward-facing and account-level: making the repo public, generating/holding the GPG private key, adding repo secrets, and registering on the Terraform Registry. Nothing here publishes anything on its own — only a pushedv*tag triggers a release.Validation
goreleaser checkpasses against the pinned v2.5 line (caught and fixed aformats:→format:schema mismatch during authoring).goreleaser build --snapshot --single-targetbuilds the provider with the version ldflag embedded;go.mod/go.sumuntouched.go build ./...clean.