-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
56 lines (54 loc) · 1.41 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
version: 2
project_name: forge
release:
github:
owner: stormforger
name: cli
brews:
- repository:
owner: stormforger
name: homebrew-forge
directory: Formula
homepage: "https://stormforger.com"
description: "The StormForger Command Line Client, called 'forge'"
install: |
bin.install "forge"
# generate and install bash completion
output = Utils.safe_popen_read("#{bin}/forge", "completion", "bash")
(bash_completion/"forge").write output
# generate and install zsh completion
output = Utils.safe_popen_read("#{bin}/forge", "completion", "zsh")
(zsh_completion/"_forge").write output
dockers:
- image_templates:
- 'stormforger/cli:{{ .Tag }}'
- 'stormforger/cli:latest'
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
main: .
ldflags: -s -w -X github.com/stormforger/cli/buildinfo.version={{.Version}} -X github.com/stormforger/cli/buildinfo.commit={{.Commit}} -X github.com/stormforger/cli/buildinfo.date={{.Date}}
binary: forge
archives:
- id: release
format: zip
format_overrides:
- goos: linux
format: tar.gz
name_template: '{{ .Binary }}_v{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}'
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}