forked from DanMolz/starlink_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
74 lines (67 loc) · 1.7 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
project_name: starlink_exporter
before:
hooks:
- go mod tidy
- go test ./...
builds:
- main: ./cmd/starlink_exporter/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
goarm:
- 7
archives:
- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- none*
checksum:
name_template: 'checksums.txt'
dockers:
- image_templates:
- idoqo/{{.ProjectName}}:v{{ .Version }}-amd64
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- idoqo/{{.ProjectName}}:v{{ .Version }}-arm7
use: buildx
dockerfile: Dockerfile
goarch: arm
goarm: 7
build_flag_templates:
- "--platform=linux/arm/v7"
- image_templates:
- idoqo/{{.ProjectName}}:v{{ .Version }}-arm64
use: buildx
dockerfile: Dockerfile
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
docker_manifests:
# dockerhub
- name_template: idoqo/{{.ProjectName}}:v{{ .Version }}
image_templates:
- idoqo/{{.ProjectName}}:v{{ .Version }}-amd64
- idoqo/{{.ProjectName}}:v{{ .Version }}-arm64
- idoqo/{{.ProjectName}}:v{{ .Version }}-arm7
- name_template: idoqo/{{.ProjectName}}:latest
image_templates:
- idoqo/{{.ProjectName}}:v{{ .Version }}-amd64
- idoqo/{{.ProjectName}}:v{{ .Version }}-arm64
- idoqo/{{.ProjectName}}:v{{ .Version }}-arm7