forked from vultr/vultr-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
97 lines (75 loc) · 1.89 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
97
version: 2
builds:
-
env:
- CGO_ENABLED=0
binary: vultr-cli
flags:
- -trimpath #removes all file system paths from the compiled executable
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7
archives:
-
name_template: >-
{{- .ProjectName }}_v
{{- .Version }}_
{{- if eq .Os "darwin" }}macOs
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "arm" }}arm32-v{{ .Arm }}
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
files:
- none*
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
algorithm: sha256
snapshot:
name_template: "{{ .ProjectName }}_v{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: vultr-cli
repository:
owner: vultr
name: homebrew-vultr-cli
url_template: "https://github.com/vultr/vultr-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
homepage: "https://github.com/vultr/vultr-cli"
description: "Official command-line tool for Vultr services"
test: |
output = shell_output("#{bin}/vultr-cli version 2>&1", 1)
assert_match "Please export your VULTR API key as an environment variable or add `api-key` to your config file, eg:\nexport VULTR_API_KEY='<api_key_from_vultr_account>'\n", output
install: |
bin.install "vultr-cli"
prefix.install_metafiles
dockers:
- dockerfile: Dockerfile.goreleaser
image_templates:
- "vultr/vultr-cli:release"
- "vultr/vultr-cli:latest"
- "vultr/vultr-cli:{{ .Tag }}"
extra_files:
- scripts/entrypoint.sh
release:
github:
owner: vultr
name: vultr-cli