-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
58 lines (58 loc) · 1.58 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
release:
github:
owner: nxtlytics
name: cloud-lifecycle-controller
before:
hooks:
# Ensure that any go.mod modifications due to linters, go generate, etc are
# removed.
- go mod tidy
# Using Go modules intrinsically causes modifications to these files that are
# unfortunately unavoidable. Newer patch versions available to the CI will
# satisfy the same module requirements and cause additions to go.sum.
- git checkout -- go.sum
builds:
- env:
main: ./main.go
goarch:
- amd64
- arm64
gcflags:
- all=-trimpath={{.Env.GOPATH}}
asmflags:
- all=-trimpath={{.Env.GOPATH}}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/nxtlytics/cloud-lifecycle-controller
description: Remove nodes from Kubernetes when they don't exist in the cloud provider
maintainer: nxtlytics <[email protected]>
license: MPL-2.0
vendor: nxtlytics
bindir: "/usr/local/bin"
replacements:
amd64: x86_64
formats:
- rpm
empty_folders:
- /etc/systemd/system/cloud-lifecycle-controller.service.d
contents:
- src: deploy/cloud-lifecycle-controller.service
dst: /etc/systemd/system/cloud-lifecycle-controller.service
- src: deploy/cloud-lifecycle-controller
dst: /etc/sysconfig/cloud-lifecycle-controller
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'