-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
77 lines (76 loc) · 1.6 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
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
project_name: autocomplete
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
prerelease: auto
archives:
- format: binary
replacements:
amd64: x86_64
name_template: "autocomplete-{{.Os}}-{{.Arch}}"
builds:
- <<: &build_defaults
binary: "autocomplete-{{.Os}}-{{.Arch}}"
main: ./
env:
- CGO_ENABLED=0
id: linux-amd64
goos:
- linux
goarch:
- amd64
goarm:
- 7
- <<: *build_defaults
id: linux-arm64
goos:
- linux
goarch:
- arm64
goarm:
- 7
- <<: *build_defaults
id: linux-arm
goos:
- linux
goarch:
- arm
goarm:
- 7
- <<: *build_defaults
id: darwin-amd64
goos:
- darwin
goarch:
- amd64
- <<: *build_defaults
id: darwin-arm64
goos:
- darwin
goarch:
- arm64
brews:
- name: autocomplete
tap:
owner: J-Thompson12
name: homebrew-tap
token: "{{ .Env.BOT_TOKEN }}"
commit_author:
name: justin
email: [email protected]
folder: Formula
homepage: "https://docs.gitops.weave.works/docs/getting-started"
description: "GitOps support for Kubernetes"
install: |
bin.install "autocomplete"
bash_output = Utils.safe_popen_read(bin/"autocomplete", "completion", "bash")
(bash_completion/"autocomplete").write bash_output
zsh_output = Utils.safe_popen_read(bin/"_autocomplete", "completion", "zsh")
(zsh_completion/"_autocomplete").write zsh_output
test: |
system "#{bin}/autocomplete"