-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
69 lines (61 loc) · 1.26 KB
/
.goreleaser.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- make -C release
builds:
- binary: '{{.ProjectName}}_v{{.Version}}'
mod_timestamp: '{{.CommitTimestamp}}'
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- darwin
- freebsd
- linux
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: windows
goarch: arm
archives:
- format: zip
name_template: '{{.ProjectName}}_{{.Version}}_{{.Os}}_{{.Arch}}'
files:
- src: release/COPYING.txt
strip_parent: true
- src: release/sources.zip
strip_parent: true
checksum:
algorithm: sha256
name_template: '{{.ProjectName}}_{{.Version}}_SHA256SUMS'
extra_files:
- glob: terraform-registry-manifest.json
name_template: '{{.ProjectName}}_{{.Version}}_manifest.json'
signs:
- artifacts: checksum
args:
- --batch
- --local-user
- '{{.Env.GPG_FINGERPRINT}}'
- --output
- '${signature}'
- --detach-sign
- '${artifact}'
release:
extra_files:
- glob: terraform-registry-manifest.json
name_template: '{{.ProjectName}}_{{.Version}}_manifest.json'
changelog:
disable: true