driftctl/.goreleaser.yml

47 lines
1.1 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:
2021-12-06 16:00:54 +00:00
owner: snyk
2021-07-09 11:09:20 +00:00
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-12-06 13:29:39 +00:00
ldflags: "-s -w -X github.com/snyk/driftctl/build.env={{ .Env.ENV }} -X github.com/snyk/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"
blobs:
- provider: s3
bucket: snyk-assets
region: us-east-1
folder: "cli/driftctl/{{.Tag}}"