forked from FUSAKLA/autograf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
40 lines (36 loc) · 1.22 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
before:
hooks:
- go mod download
builds:
- main: ./
binary: autograf
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
source:
enabled: true
dockers:
- goos: linux
goarch: amd64
image_templates:
- fusakla/autograf:{{ .Tag }}
- fusakla/autograf:v{{ .Major }}.{{ .Minor }}
- fusakla/autograf:v{{ .Major }}
- fusakla/autograf: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 generate Grafana dashboard form Prometheus metrics.
- --label=org.opencontainers.image.url={{.GitURL}}
- --label=org.opencontainers.image.documentation={{.GitURL}}
- --label=org.opencontainers.image.source={{replace .GitURL ".git" "" }}