-
Notifications
You must be signed in to change notification settings - Fork 11
/
.goreleaser.yml
62 lines (61 loc) · 1.61 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
env:
- GO111MODULE=on
before:
hooks:
- go mod download
archives:
- id: binary
format: binary
builds:
- binary-build
- id: zip
format: zip
builds:
- lambda-build
files:
- none*
name_template: "{{ .ProjectName }}_{{ .Version }}_lambda"
builds:
- id: binary-build
binary: cloud-key-rotator
main: ./cmd/
goos:
- windows
- darwin
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/ovotech/cloud-key-rotator/pkg/build.Version={{.Version}}
- -X github.com/ovotech/cloud-key-rotator/pkg/build.Commit={{.ShortCommit}}
- -X github.com/ovotech/cloud-key-rotator/pkg/build.Date={{.Date}}
- -X github.com/ovotech/cloud-key-rotator/pkg/build.OsArch={{.Os}}/{{.Arch}}
- id: lambda-build
binary: cloud-key-rotator-lambda
main: ./cmd/
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w
- -X github.com/ovotech/cloud-key-rotator/pkg/build.Version={{.Version}}
- -X github.com/ovotech/cloud-key-rotator/pkg/build.Commit={{.ShortCommit}}
- -X github.com/ovotech/cloud-key-rotator/pkg/build.Date={{.Date}}
- -X github.com/ovotech/cloud-key-rotator/pkg/build.OsArch={{.Os}}/{{.Arch}}
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
dockers:
-
goos: linux
goarch: amd64
binaries:
- cloud-key-rotator
image_templates:
- "ovotech/cloud-key-rotator:{{ .Tag }}"
- "ovotech/cloud-key-rotator:v{{ .Major }}"
- "ovotech/cloud-key-rotator:v{{ .Major }}.{{ .Minor }}"
- "ovotech/cloud-key-rotator:latest"