-
Notifications
You must be signed in to change notification settings - Fork 44
/
.goreleaser.yml
57 lines (56 loc) · 1.25 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
project_name: flamingo
builds:
- <<: &build_defaults
binary: flamingo
main: ./cmd/flamingo
ldflags:
- -s -w -X main.Version={{ .Version }} -X main.ServerVersion={{ .Env.SERVER_VERSION }}
env:
- CGO_ENABLED=0
id: linux
goos:
- linux
goarch:
- amd64
- arm64
- arm
goarm:
- 7
- <<: *build_defaults
id: darwin
goos:
- darwin
goarch:
- amd64
- arm64
- <<: *build_defaults
id: windows
goos:
- windows
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
id: nix
builds: [linux, darwin]
format: tar.gz
files:
- none*
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
id: windows
builds: [windows]
format: zip
files:
- none*
brews:
- name: flamingo
tap:
owner: flux-subsystem-argo
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
folder: Formula
homepage: "https://flux-subsystem-argo.github.io/website/"
description: "Flamingo CLI"
install: |
bin.install "flamingo"
generate_completions_from_executable(bin/"flamingo", "completion")
test: |
system "#{bin}/flamingo --version"