feat!: add terraform provider support#10
Merged
Conversation
- Rename ci.yaml to module-ci.yaml for consistent naming - Add module-release.yaml wrapping release-please for modules - Add provider-ci.yaml with Go build, test, vet, lint, and registry prerequisite validation (manifest, repo naming, goreleaser config) - Add provider-release.yaml combining release-please with goreleaser for cross-platform binary builds and GPG-signed releases - Add examples/ with reference caller workflows, goreleaser config, and release-please configs for both modules and providers - Rewrite README.md documenting both module and provider workflows
Move the release-please action into a single release-please.yaml workflow and have release.yaml, module-release.yaml, and provider-release.yaml call it instead of duplicating the action.
Ensures every provider repository has release.mode set to 'append' in .goreleaser.yml, which is required to coexist with release-please.
Instead of requiring a PAT and separate tag-triggered workflow, goreleaser now runs in the same workflow after release-please, triggered by releases_created output. This simplifies consumer setup and removes the GITHUB_TOKEN trigger limitation.
540b66e to
7ef4723
Compare
…s github actions do not support relative files in templates to compose workflows
marwinbaumannsbp
approved these changes
Apr 9, 2026
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
Adds reusable GitHub Actions workflows for Terraform provider repositories alongside the existing module workflows, and aligns the naming convention across both.
Changes:
ci.yaml→module-ci.yamlfor consistent namingmodule-release.yamlwrapping release-please for module releasesprovider-ci.yamlwith Go build (CGO_ENABLED=0), test, vet, lint (golangci-lint), goreleaser config validation, and Terraform Registry prerequisite checks (manifest, repo naming)provider-release.yamlcombining release-please for versioning with GoReleaser for cross-platform binary builds and GPG-signed releasesgoogleapis/release-please-actionstep directly inrelease.yaml,module-release.yaml, andprovider-release.yaml— reusable workflow chaining is not possible since the caller repo cannot resolve relative paths back to this repoexamples/directory with reference caller workflows (pinned to a release version + SHA),.goreleaser.yml, and release-please configs for both modules and providersREADME.mddocumenting both module and provider workflows with setup instructions🚀 Motivation
We currently only support CI/CD for Terraform modules. Terraform providers have fundamentally different needs: they are Go binaries that must be cross-compiled, GPG-signed, and published with specific artifacts (
SHA256SUMS,terraform-registry-manifest.json) for the Terraform Registry to ingest them. By adding provider workflows we can standardize the CI and release process for providers the same way we already do for modules.The naming was also aligned to a
{type}-ci.yaml/{type}-release.yamlpattern so the workflow structure is consistent and predictable.📝 Additional Information
releases_created == true), GoReleaser runs immediately after to build binaries and append them to the release (release.mode: append). This avoids the need for a PAT or separate tag-triggered workflow.terraform-provider-*), presence and validity ofterraform-registry-manifest.json, valid.goreleaser.yml, and thatrelease.modeis set toappend(required to coexist with release-please).module-ci.yamlrename is a breaking change for existing consumers — they need to update their caller workflows fromci.yamltomodule-ci.yaml.