sethbacon/Terraform module publish
Publish a Terraform/OpenTofu module version to a self-hosted registry or HCP Terraform / Terraform Enterprise.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| registry-type | "private" (self-hosted registry) or "hcp" (HCP Terraform / TFE). | yes | — |
| namespace | Module namespace / organization. | yes | — |
| name | Module name. | yes | — |
| provider | Module provider / target system. | yes | — |
| version | Module version to publish (e.g. 1.2.3). | yes | — |
| registry-url | Base URL of the private registry (required for registry-type=private). | no | "" |
| api-key | API key for the private registry (Bearer). Required for registry-type=private. | no | "" |
| skip-tls-verify | Disable TLS verification for the private registry (private-CA endpoints only). | no | false |
| hcp-address | HCP Terraform / TFE base URL. | no | https://app.terraform.io |
| hcp-token | HCP/TFE API token (Bearer). Required for registry-type=hcp. | no | "" |
| vcs-repo-identifier | VCS repo identifier (org/repo) used to create the module if missing. | no | "" |
| vcs-branch | VCS branch for a VCS-connected HCP module. | no | main |
| vcs-oauth-token-id | HCP VCS OAuth token ID used to create the module if missing. | no | "" |
| commit-sha | Commit SHA to associate with the new HCP module version. | no | "" |
| wait-for-publish | Wait until the version is available/ready in the registry. | no | false |
| timeout-seconds | Wait timeout in seconds (when wait-for-publish is true). | no | 180 |
Outputs
| name | description |
|---|---|
| published | "true" when a version was published (or sync triggered); "false" if it already existed. |
| message | Human-readable status message. |