forked from exoscale/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
100 lines (92 loc) · 2.3 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
98
99
100
project_name: exoscale-cli
before:
hooks:
- make manpages completions sos-certificates
builds:
- binary: exo
env:
- CGO_ENABLED=0
flags:
- -mod=vendor
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
goos:
- windows
- darwin
- linux
- openbsd
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: openbsd
goarch: arm
- goos: openbsd
goarch: arm64
# macOS Universal Binaries
universal_binaries:
- replace: true
archives:
- id: windows
format_overrides:
- goos: windows
format: zip
files:
- sos-certs.pem
- LICENSE
- contrib/completion/**/*
- manpage/*
release:
github:
owner: exoscale
name: cli
nfpms:
- vendor: Exoscale
homepage: https://www.exoscale.com/
maintainer: Exoscale Support <support@exoscale.com>
description: Manage easily your Exoscale infrastructure from the command-line.
license: Apache 2.0
formats:
- deb
- rpm
contents:
# manpages
- src: "./manpage/exo*.1"
dst: "/usr/share/man/man1"
# bash
- src: "./contrib/completion/bash/exo"
dst: "/usr/share/bash-completion/completions/exo"
# zsh
- src: "./contrib/completion/zsh/_exo"
dst: "/usr/share/zsh/vendor-completions/_exo"
brews:
- tap:
owner: exoscale
name: homebrew-tap
folder: Formula
homepage: "https://exoscale.github.io/cli/"
description: Manage easily your Exoscale infrastructure from the command-line.
install: |
bin.install "exoscale-cli" => "exo"
man1.install Dir["manpage/exo*.1"]
bash_completion.install "contrib/completion/bash/exo"
zsh_completion.install "contrib/completion/zsh/_exo"
dockers:
- goos: linux
goarch: amd64
image_templates:
- "exoscale/cli:latest"
- "exoscale/cli:{{ .Major }}"
- "exoscale/cli:{{ .Major }}.{{ .Minor }}"
- "exoscale/cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- --pull
- --build-arg="VERSION={{.Version}}"
- --build-arg="VCS_REF={{.ShortCommit}}"
- --build-arg="BUILD_DATE={{.Date}}"