-
Notifications
You must be signed in to change notification settings - Fork 24
/
.goreleaser.yaml
54 lines (52 loc) · 1.27 KB
/
.goreleaser.yaml
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
version: 2
project_name: cli
release:
github:
name: replicated
owner: replicatedhq
brews:
- homepage: https://docs.replicated.com/reference/replicated-cli-installing
description: "Package Replicated applications and manage releases, channels, customers and entitlements using a command-line interface."
repository:
name: homebrew-replicated
owner: replicatedhq
branch: main
install: bin.install "replicated"
directory: HomebrewFormula
universal_binaries:
- ids:
- cli
replace: true
name_template: replicated
builds:
- goos:
- linux
- darwin
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cli/main.go
ldflags: -s -w
-X github.com/replicatedhq/replicated/pkg/version.version={{.Version}}
-X github.com/replicatedhq/replicated/pkg/version.gitSHA={{.FullCommit}}
-X github.com/replicatedhq/replicated/pkg/version.buildTime={{.Date}}
-extldflags "-static"
flags: -tags netgo -installsuffix netgo
binary: replicated
hooks: {}
archives:
- format: tar.gz
name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
snapshot:
version_template: SNAPSHOT-{{ .Commit }}