forked from seznam/slo-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
46 lines (41 loc) · 1.4 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
before:
hooks:
- go mod download
builds:
- main: ./cmd/slo_exporter.go
binary: slo_exporter
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- 386
ignore:
- goos: darwin
goarch: 386
source:
enabled: true
dockers:
- goos: linux
goarch: amd64
image_templates:
- seznam/slo-exporter:{{ .Tag }}
- seznam/slo-exporter:v{{ .Major }}.{{ .Minor }}
- seznam/slo-exporter:v{{ .Major }}
- seznam/slo-exporter:latest
build_flag_templates:
- --pull
# Labels according to opencontainers label schema https://github.com/opencontainers/image-spec/blob/master/annotations.md
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.revision={{.FullCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.title={{.ProjectName}}
- --label=org.opencontainers.image.description=Tool to evaluate and generate standardizedSLO metrics from distinct data sources.
- --label=org.opencontainers.image.vendor=Seznam, a.s.
- --label=org.opencontainers.image.authors=sklik.devops@firma.seznam.cz
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}