- Rename Go module path to codeberg.org/towerops/terraform-provider-towerops - Replace .github/workflows/release.yml with .forgejo/workflows/release.yml - Configure GoReleaser to publish to Codeberg via Gitea API - Bump indirect dependencies (golang.org/x/*, grpc, go-plugin, etc.)
43 lines
943 B
YAML
43 lines
943 B
YAML
version: 2
|
|
gitea_urls:
|
|
api: https://codeberg.org/api/v1/
|
|
download: https://codeberg.org
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- '-s -w -X main.version={{.Version}}'
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
binary: '{{ .ProjectName }}_v{{ .Version }}'
|
|
archives:
|
|
- formats:
|
|
- zip
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
|
checksum:
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
|
|
algorithm: sha256
|
|
signs:
|
|
- artifacts: checksum
|
|
args:
|
|
- "--batch"
|
|
- "--pinentry-mode"
|
|
- "loopback"
|
|
- "--passphrase"
|
|
- "{{ .Env.PASSPHRASE }}"
|
|
- "--local-user"
|
|
- "{{ .Env.GPG_FINGERPRINT }}"
|
|
- "--output"
|
|
- "${signature}"
|
|
- "--detach-sign"
|
|
- "${artifact}"
|
|
release:
|
|
draft: false
|