-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
74 lines (67 loc) · 1.75 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
project_name: pullup
release:
github:
owner: tommy351
name: pullup
extra_files:
- glob: ./assets/dist/pullup-deployment.yml
prerelease: auto
before:
hooks:
- go mod download
builds:
- &build
id: pullup-controller
binary: pullup-controller
goos:
- darwin
- windows
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
main: ./cmd/controller
ldflags:
- -s -w -X github.com/tommy351/pullup/cmd.Version={{.Version}} -X github.com/tommy351/pullup/cmd.Commit={{.Commit}} -X github.com/tommy351/pullup/cmd.Date={{.Date}}
- <<: *build
id: pullup-webhook
binary: pullup-webhook
main: ./cmd/webhook
archives:
- format: tar.gz
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
checksum:
name_template: '{{ .ProjectName }}-checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^ci:'
- '^docs:'
- '^test:'
dockers:
- binaries:
- pullup-controller
dockerfile: Dockerfile
image_templates:
- 'tommy351/pullup-controller:{{ .Version }}'
- 'tommy351/pullup-controller:{{ .Major }}.{{ .Minor }}'
- 'tommy351/pullup-controller:{{ .Major }}'
- 'tommy351/pullup-controller:latest'
build_flag_templates:
- --build-arg=BINARY_NAME=pullup-controller
- binaries:
- pullup-webhook
dockerfile: Dockerfile
image_templates:
- 'tommy351/pullup-webhook:{{ .Version }}'
- 'tommy351/pullup-webhook:{{ .Major }}.{{ .Minor }}'
- 'tommy351/pullup-webhook:{{ .Major }}'
- 'tommy351/pullup-webhook:latest'
build_flag_templates:
- --build-arg=BINARY_NAME=pullup-webhook