-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yaml
99 lines (92 loc) · 1.99 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
project_name: kubemox
before:
hooks:
- go mod tidy
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
builds:
- id: kubemox
binary: kubemox
main: cmd/main.go
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }} -X main.treeState={{ .IsGitDirty }}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: openbsd
goarch: arm
goarm: 6
mod_timestamp: '{{ .CommitTimestamp }}'
kos:
- id: kubemox-image
build: kubemox
main: ./cmd/...
base_image: ghcr.io/distroless/static:latest
platforms:
- all
ldflags:
- -extldflags "-static"
- -s
- -w
tags:
- latest
- '{{ .Tag }}'
env:
- CGO_ENABLED=0
flags:
- -trimpath
sbom: none
bare: true
preserve_import_paths: false
base_import_paths: false
archives:
- id: with-version
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- README.md
- id: without-version
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- README.md
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^demo:'
- 'README'
- Merge pull request
- Merge branch