-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy path.goreleaser.yml
47 lines (47 loc) · 1.5 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
project_name: redis-operator
release:
github:
owner: amadeusitgroup
name: redis-operator
builds:
- goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
main: ./cmd/operator/main.go
flags: -a -installsuffix cgo
ldflags: -s -w -X github.com/amadeusitgroup/redis-operator/pkg/utils.VERSION={{.Version}} -X github.com/amadeusitgroup/redis-operator/pkg/utils.COMMIT={{.Commit}} -X github.com/amadeusitgroup/redis-operator/pkg/utils.BUILDTIME={{.Date}} -X github.com/amadeusitgroup/redis-operator/pkg/utils.TAG={{.Tag}}
binary: operator
- goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
main: ./cmd/redisnode/main.go
flags: -a -installsuffix cgo
ldflags: -s -w -X github.com/amadeusitgroup/redis-operator/pkg/utils.VERSION={{.Version}} -X github.com/amadeusitgroup/redis-operator/pkg/utils.COMMIT={{.Commit}} -X github.com/amadeusitgroup/redis-operator/pkg/utils.BUILDTIME={{.Date}} -X github.com/amadeusitgroup/redis-operator/pkg/utils.TAG={{.Tag}}
binary: redisnode
dockers:
- image: redisoperator/operator
dockerfile: docker/operator/Dockerfile
goos: linux
goarch: amd64
binary: operator
tag_templates:
- '{{ .Tag }}'
- image: redisoperator/redisnode
dockerfile: ./docker/redisnode/redisnode.Dockerfile
goos: linux
goarch: amd64
binary: redisnode
tag_templates:
- '{{ .Tag }}'
extra_files:
- docker/redisnode/redis-cluster.conf
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'