-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.goreleaser.yml
91 lines (83 loc) · 2.56 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
project_name: speedtest_exporter
before:
hooks:
- go mod tidy
- go test ./...
builds:
- main: ./cmd/speedtest_exporter/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 7
archives:
- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- none*
checksum:
name_template: 'checksums.txt'
dockers:
- image_templates:
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-amd64
- danopstech/{{.ProjectName}}:v{{ .Version }}-amd64
use_buildx: true
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-arm7
- danopstech/{{.ProjectName}}:v{{ .Version }}-arm7
use_buildx: true
dockerfile: Dockerfile
goarch: arm
goarm: 7
build_flag_templates:
- "--platform=linux/arm/v7"
- image_templates:
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-arm64
- danopstech/{{.ProjectName}}:v{{ .Version }}-arm64
use_buildx: true
dockerfile: Dockerfile
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
docker_manifests:
# github
- name_template: ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}
image_templates:
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-amd64
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-arm64
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-arm7
- name_template: ghcr.io/danopstech/{{.ProjectName}}:latest
image_templates:
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-amd64
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-arm64
- ghcr.io/danopstech/{{.ProjectName}}:v{{ .Version }}-arm7
# dockerhub
- name_template: danopstech/{{.ProjectName}}:v{{ .Version }}
image_templates:
- danopstech/{{.ProjectName}}:v{{ .Version }}-amd64
- danopstech/{{.ProjectName}}:v{{ .Version }}-arm64
- danopstech/{{.ProjectName}}:v{{ .Version }}-arm7
- name_template: danopstech/{{.ProjectName}}:latest
image_templates:
- danopstech/{{.ProjectName}}:v{{ .Version }}-amd64
- danopstech/{{.ProjectName}}:v{{ .Version }}-arm64
- danopstech/{{.ProjectName}}:v{{ .Version }}-arm7