-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
60 lines (60 loc) · 1.4 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
project_name: kubbernecker
dist: bin/
builds:
- id: kubbernecker-metrics
env:
- CGO_ENABLED=0
main: ./cmd/kubbernecker-metrics
binary: kubbernecker-metrics
goos:
- linux
goarch:
- amd64
ldflags:
- -X github.com/zoetrope/kubbernecker.Version={{.Version}}
- id: kubectl-kubbernecker
env:
- CGO_ENABLED=0
main: ./cmd/kubectl-kubbernecker
binary: kubectl-kubbernecker
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -X github.com/zoetrope/kubbernecker.Version={{.Version}}
ignore:
- goos: windows
goarch: arm64
archives:
- builds:
- kubectl-kubbernecker
name_template: "kubectl-{{ .ProjectName }}_{{ .Os }}-{{ .Arch }}"
wrap_in_directory: false
format: tar.gz
files:
- LICENSE
rlcp: true
dockers:
- image_templates:
- "ghcr.io/zoetrope/kubbernecker:{{ .Version }}"
use: buildx
dockerfile: ./Dockerfile
ids:
- kubbernecker-metrics
extra_files:
- LICENSE
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "dev"
changelog:
use: github-native