-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
35 lines (35 loc) · 959 Bytes
/
.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
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz
dockers:
- goos: linux
goarch: amd64
image_templates:
- "mxssl/selectel-billing-exporter:latest"
- "mxssl/selectel-billing-exporter:{{ .Tag }}"
dockerfile: Dockerfile.ci
use: buildx
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/mxssl/selectel-billing-exporter"
- "--platform=linux/amd64"
- "--pull"