-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
54 lines (53 loc) · 1.42 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
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
binary: snow-exporter
ldflags:
- -s -w -X github.com/zebbra/snow-exporter/internal/lib/version.Version={{.Version}} -X github.com/zebbra/snow-exporter/internal/lib/version.Commit={{.Commit}} -X github.com/zebbra/snow-exporter/internal/lib/version.Date={{.Date}}
goos:
- darwin
- linux
goarch:
- amd64
- arm64
archives:
- files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
dockers:
- dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--pull"
image_templates:
- "ghcr.io/zebbra/snow-exporter:{{ .Tag }}-amd64"
goos: linux
goarch: amd64
ids:
- snow-exporter
- dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--pull"
image_templates:
- "ghcr.io/zebbra/snow-exporter:{{ .Tag }}-arm64"
goos: linux
goarch: arm64
ids:
- snow-exporter
docker_manifests:
- name_template: ghcr.io/zebbra/snow-exporter:{{ .Tag }}
image_templates:
- "ghcr.io/zebbra/snow-exporter:{{ .Tag }}-amd64"
- "ghcr.io/zebbra/snow-exporter:{{ .Tag }}-arm64"
- name_template: ghcr.io/zebbra/snow-exporter:latest
image_templates:
- "ghcr.io/zebbra/snow-exporter:{{ .Tag }}-amd64"
- "ghcr.io/zebbra/snow-exporter:{{ .Tag }}-arm64"