-
Notifications
You must be signed in to change notification settings - Fork 160
/
.goreleaser.yml
44 lines (44 loc) · 1.13 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
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 }}_{{- if eq .Arch "armv6" }}arm{{- else }}{{ .Arch }}{{ end }}'
format: binary
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}}"