-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
45 lines (45 loc) · 1.44 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
before:
hooks:
- go mod download
builds:
- main: main.go
binary: sops-operator
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- linux
ldflags:
- >-
-X github.com/craftypath/sops-operator/pkg/version.Version={{ .Tag }}
-X github.com/craftypath/sops-operator/pkg/version.GitCommit={{ .Commit }}
-X github.com/craftypath/sops-operator/pkg/version.BuildDate={{ .Date }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
archives:
- files:
- LICENSE
- README.md
dockers:
- goos: linux
goarch: amd64
ids:
- sops-operator
skip_push: false
dockerfile: build/Dockerfile
image_templates:
- craftypath/sops-operator:{{ .Tag }}
- craftypath/sops-operator:latest
build_flag_templates:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .Commit }}
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description=The Kubernetes operator for Mozilla SOPS
- --label=org.opencontainers.image.vendor=craftypath
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.source=https://github.com/craftypath/sops-operator
- --label=org.opencontainers.image.authors=The SOPS Operator Authors