forked from snyk/driftctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
46 lines (46 loc) · 1.12 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
project_name: driftctl
dist: bin
release:
github:
owner: snyk
name: driftctl
draft: false
prerelease: auto
before:
hooks:
- go generate ./...
signs:
- signature: "${artifact}.gpg"
artifacts: checksum
args: [ "--batch", "-u", "[email protected]", "--output", "${signature}", "--detach-sign", "${artifact}" ]
builds:
- id: "driftctl"
binary: driftctl
dir: .
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
- 386
ldflags: "-s -w -X github.com/snyk/driftctl/build.env={{ .Env.ENV }} -X github.com/snyk/driftctl/pkg/version.version={{ .Tag }}"
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}}"