-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
84 lines (84 loc) · 1.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: 2
project_name: baton-aws
builds:
- binary: baton-aws
env:
- CGO_ENABLED=0
id: linux
main: ./cmd/baton-aws
goos:
- linux
goarch:
- amd64
- arm64
- binary: baton-aws
env:
- CGO_ENABLED=0
id: macos-amd64
main: ./cmd/baton-aws
goos:
- darwin
goarch:
- amd64
hooks:
post:
- gon .gon-amd64.json
- mv dist/baton-aws-darwin-amd64.signed.zip dist/macos-amd64_darwin_amd64_v1/baton-aws
- binary: baton-aws
env:
- CGO_ENABLED=0
id: macos-arm64
main: ./cmd/baton-aws
goos:
- darwin
goarch:
- arm64
hooks:
post:
- gon .gon-arm64.json
- mv dist/baton-aws-darwin-arm64.signed.zip dist/macos-arm64_darwin_arm64/baton-aws
archives:
- id: linux-archive
builds:
- linux
format: tar.gz
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- none*
- id: darwin-archive
builds:
- macos-amd64
- macos-arm64
format: binary
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}.zip"
files:
- none*
release:
ids:
- linux-archive
- darwin-archive
snapshot:
name_template: "{{ incpatch .Version }}-dev"
checksum:
ids:
- linux-archive
extra_files:
- glob: ./dist/*-darwin-amd64.zip
- glob: ./dist/*-darwin-arm64.zip
brews:
- repository:
owner: conductorone
name: homebrew-baton
directory: Formula
homepage: https://conductorone.com
test: |
system "#{bin}/baton-aws -v"
install: |-
bin.install "baton-aws"
changelog:
filters:
exclude:
- "^docs:"
- typo
- lint
- Merge pull request