-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yaml
49 lines (49 loc) · 1.46 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
project_name: kubectl-vpa-recommendation
release:
prerelease: auto
draft: true
before:
hooks:
- go mod tidy
- go mod download
builds:
- binary: kubectl-vpa-recommendation
main: ./cmd/kubectl-vpa-recommendation
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -s
- -w
- -X github.com/wI2L/kubectl-vpa-recommendation/internal/version.buildDate={{ .Date }}
- -X github.com/wI2L/kubectl-vpa-recommendation/internal/version.gitCommit={{ .FullCommit }}
- -X github.com/wI2L/kubectl-vpa-recommendation/internal/version.gitVersion={{ .Version }}
- -X github.com/wI2L/kubectl-vpa-recommendation/internal/version.gitTreeState={{ .Env.GIT_TREE_STATE }}
- -X github.com/wI2L/kubectl-vpa-recommendation/internal/version.gitVersionMajor={{ .Major }}
- -X github.com/wI2L/kubectl-vpa-recommendation/internal/version.gitVersionMinor={{ .Minor }}
archives:
- name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- README.md
- LICENSE
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-snapshot"
changelog:
use: github