-
Notifications
You must be signed in to change notification settings - Fork 21
/
.goreleaser.yml
88 lines (82 loc) · 3.3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
before:
hooks:
- go mod download
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
builds:
- main: ./cmd/slo_exporter.go
binary: slo_exporter
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
- arm64
ignore:
- goos: darwin
goarch: "386"
source:
enabled: true
dockers:
- goos: linux
goarch: amd64
image_templates:
- seznam/slo-exporter:{{ .Tag }}-amd64
- seznam/slo-exporter:v{{ .Major }}.{{ .Minor }}-amd64
- seznam/slo-exporter:v{{ .Major }}-amd64
- seznam/slo-exporter:latest-amd64
use: buildx
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}}
- "--platform=linux/amd64"
- goos: linux
goarch: arm64
image_templates:
- seznam/slo-exporter:{{ .Tag }}-arm64
- seznam/slo-exporter:v{{ .Major }}.{{ .Minor }}-arm64
- seznam/slo-exporter:v{{ .Major }}-arm64
- seznam/slo-exporter:latest-arm64
use: buildx
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}}
- "--platform=linux/arm64"
docker_manifests:
- name_template: "seznam/slo-exporter:{{ .Tag }}"
image_templates:
- "seznam/slo-exporter:{{ .Tag }}-amd64"
- "seznam/slo-exporter:{{ .Tag }}-arm64"
- name_template: "seznam/slo-exporter:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "seznam/slo-exporter:v{{ .Major }}.{{ .Minor }}-amd64"
- "seznam/slo-exporter:v{{ .Major }}.{{ .Minor }}-arm64"
- name_template: "seznam/slo-exporter:v{{ .Major }}"
image_templates:
- "seznam/slo-exporter:v{{ .Major }}-amd64"
- "seznam/slo-exporter:v{{ .Major }}-arm64"
- name_template: "seznam/slo-exporter:latest"
image_templates:
- "seznam/slo-exporter:latest-amd64"
- "seznam/slo-exporter:latest-arm64"