-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
47 lines (42 loc) · 1.06 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
builds:
- id: exoscale-csi-driver
binary: exoscale-csi-driver
main: ./cmd/exoscale-csi-driver
env:
- CGO_ENABLED=0
- GO_PKG=github.com/exoscale/exoscale-csi-driver
flags:
- -mod=vendor
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
goos:
- linux
goarch:
- amd64
dockers:
- goos: linux
goarch: amd64
image_templates:
- "exoscale/csi-driver:latest"
- "exoscale/csi-driver:{{ .Major }}"
- "exoscale/csi-driver:{{ .Major }}.{{ .Minor }}"
- "exoscale/csi-driver:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
dockerfile: Dockerfile
build_flag_templates:
- --pull
- --build-arg="VERSION={{.Version}}"
- --build-arg="VCS_REF={{.ShortCommit}}"
- --build-arg="BUILD_DATE={{.Date}}"
signs:
- cmd: gpg
args: ["--default-key", "7100E8BFD6199CE0374CB7F003686F8CDE378D41", "--detach-sign", "${artifact}"]
artifacts: all
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-snapshot"
release:
github:
owner: exoscale
name: exoscale-csi-driver