Harden CI, release, and acceptance test safety

This commit is contained in:
beatz174-bit
2026-05-12 15:12:44 +10:00
parent 878a472005
commit 1980d1f08a
7 changed files with 159 additions and 382 deletions
+33
View File
@@ -0,0 +1,33 @@
version: 2
project_name: terraform-provider-dynu
before:
hooks:
- go mod tidy
- go test ./...
builds:
- id: terraform-provider-dynu
binary: terraform-provider-dynu
main: ./main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }} -X main.date={{ .Date }}
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
ignore:
- goos: windows
goarch: arm64
archives:
- id: provider-archives
builds: [terraform-provider-dynu]
format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: 'terraform-provider-dynu_{{ .Version }}_SHA256SUMS'
changelog:
use: git