forked from capactio/capact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.latest.yml
53 lines (45 loc) · 1.12 KB
/
.goreleaser.latest.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
before:
hooks:
- go mod tidy
builds:
# Capact CLI
- id: capact
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
main: ./cmd/cli
binary: 'capact'
ldflags:
- -s -w -X capact.io/capact/cmd/cli/cmd.Version={{.Version}} -X capact.io/capact/cmd/cli/cmd.Revision={{.ShortCommit}} -X capact.io/capact/cmd/cli/cmd.BuildDate={{.Date}} -X capact.io/capact/cmd/cli/cmd.Branch={{.Branch}}
hooks:
# Install upx first, https://github.com/upx/upx/releases
post: upx -1 "{{ .Path }}"
archives:
- format: binary
name_template: '{{ .Binary }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
dockers:
- dockerfile: Dockerfile.cli
ids:
- capact
image_templates:
- "ghcr.io/capactio/tools/capact-cli:latest"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dist: bin
release:
# You can disable this pipe in order to not upload any artifacts.
# Defaults to false.
disable: true