-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
32 lines (32 loc) · 884 Bytes
/
.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
project_name: controller-k8s-cronjob
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
- go mod download
builds:
- main: .
binary: controller-k8s-cronjob
ldflags:
- -s -w
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
- -X github.com/prometheus/common/version.Branch=main
- -X github.com/prometheus/common/version.Revision={{.ShortCommit}}
- -X github.com/prometheus/common/version.BuildUser=transnano
env:
- CGO_ENABLED=0
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
release:
prerelease: auto