forked from FUSAKLA/promruval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
48 lines (43 loc) · 1.31 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
before:
hooks:
- go mod download
builds:
- main: ./
binary: promruval
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- "386"
ignore:
- goos: darwin
goarch: "386"
release:
draft: true
source:
enabled: true
dockers:
- goos: linux
goarch: amd64
image_templates:
- fusakla/promruval:{{ .Tag }}
- fusakla/promruval:v{{ .Major }}.{{ .Minor }}
- fusakla/promruval:v{{ .Major }}
- fusakla/promruval: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 validate Prometheus rules.
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}