-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
96 lines (85 loc) · 2.79 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
project_name: inst
release:
prerelease: auto
draft: true
name_template: "Instill CLI {{.Version}}"
env:
- GO111MODULE=on
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- <<: &build_defaults
binary: bin/inst
main: ./cmd/inst
ldflags:
- -s -w
- -X github.com/instill-ai/cli/internal/build.Version={{ .Version }}
- -X github.com/instill-ai/cli/internal/build.Date={{ time "2006-01-02" }}
- -X github.com/instill-ai/cli/internal/oauth2.apiHostname={{ .Env.INSTILL_API_HOSTNAME }}
- -X github.com/instill-ai/cli/internal/oauth2.oauth2Hostname={{ .Env.INSTILL_OAUTH_HOSTNAME }}
- -X github.com/instill-ai/cli/internal/oauth2.oauth2Audience={{ .Env.INSTILL_OAUTH_AUDIENCE }}
- -X github.com/instill-ai/cli/internal/oauth2.oauth2Issuer={{ .Env.INSTILL_OAUTH_ISSUER }}
- -X github.com/instill-ai/cli/internal/oauth2.clientID={{ .Env.INSTILL_OAUTH_CLIENT_ID }}
- -X github.com/instill-ai/cli/internal/oauth2.clientSecret={{ .Env.INSTILL_OAUTH_CLIENT_SECRET }}
- -X main.updaterEnabled=instill-ai/cli
id: macos
goos: [darwin]
goarch: [amd64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [arm, arm64, amd64]
env:
- CGO_ENABLED=0
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [amd64]
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums_v{{ .Version }}_sha256.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Others
order: 999
brews:
- repository:
owner: instill-ai
name: homebrew-tap
description: Instill AI's command-line tool
homepage: https://github.com/instill-ai/cli
license: "Apache-2.0"
commit_author:
name: droplet-bot
email: [email protected]
install: |
bin.install "bin/inst"
(bash_completion/"inst").write `#{bin}/inst completion -s bash`
(fish_completion/"inst.fish").write `#{bin}/inst completion -s fish`
(zsh_completion/"_inst").write `#{bin}/inst completion -s zsh`
test: |
assert_match "inst version #{version}", shell_output("#{bin}/inst --version")