driftctl/.goreleaser.yml

42 lines
1.0 KiB
YAML
Raw Normal View History

2021-07-09 11:09:20 +00:00
project_name: driftctl
2021-07-15 15:33:35 +00:00
dist: bin
2021-07-09 11:09:20 +00:00
release:
github:
owner: cloudskiff
name: driftctl
draft: false
prerelease: auto
before:
hooks:
- go generate ./...
signs:
- signature: "${artifact}.gpg"
artifacts: checksum
2021-07-21 09:57:55 +00:00
args: [ "--batch", "-u", "security@cloudskiff.com", "--output", "${signature}", "--detach-sign", "${artifact}" ]
2021-07-09 11:09:20 +00:00
builds:
2021-07-15 15:33:35 +00:00
- id: "driftctl"
2021-07-09 11:09:20 +00:00
binary: driftctl
dir: .
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
- 386
2021-07-15 15:33:35 +00:00
ldflags: "-s -w -X github.com/cloudskiff/driftctl/build.env={{ .Env.ENV }} -X github.com/cloudskiff/driftctl/pkg/version.version={{ .Tag }}"
2021-07-09 11:09:20 +00:00
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
format: binary
replacements:
armv6: arm
checksum:
name_template: '{{ .ProjectName }}_SHA256SUMS'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-next"