Prepare provider for public Terraform Registry publishing

This commit is contained in:
beatz174-bit
2026-05-12 18:43:27 +10:00
parent c79f0ca836
commit 16652ee1f2
32 changed files with 123 additions and 57 deletions
+42 -12
View File
@@ -8,28 +8,58 @@ before:
builds:
- id: terraform-provider-dynu
binary: terraform-provider-dynu
main: ./main.go
binary: "{{ .ProjectName }}_v{{ .Version }}"
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }} -X main.date={{ .Date }}
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
- "-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .Date }}"
goos:
- darwin
- linux
- windows
- freebsd
goarch:
- amd64
- arm64
- arm
- "386"
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: arm64
goarch: arm
archives:
- id: provider-archives
ids:
- terraform-provider-dynu
formats:
- formats:
- zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'terraform-provider-dynu_{{ .Version }}_SHA256SUMS'
extra_files:
- glob: "terraform-registry-manifest.json"
name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json"
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
extra_files:
- glob: "terraform-registry-manifest.json"
name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json"
changelog:
use: git
disable: true