forked from 0xERR0R/meterNG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
88 lines (88 loc) · 2.4 KB
/
.goreleaser.yaml
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
project_name: meterng
before:
hooks:
- sh -c "cd web/app && npm install && ionic build --prod"
- go mod tidy
- go generate ./...
builds:
- goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
binary: meterNG
ldflags:
- -w
- -s
- -X github.com/0xERR0R/meterNG/internal/config.GitRevision=v{{.Version}}
- -X github.com/0xERR0R/meterNG/internal/config.BuildTime={{time "20060102-150405"}}
archives:
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_v
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
dockers:
- image_templates:
- "ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-amd64"
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-arm64v8"
use: buildx
goarch: arm64
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm64/v8"
- image_templates:
- "ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-armv6"
use: buildx
goarch: arm
goarm: 6
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm/v6"
- image_templates:
- "ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-armv7"
use: buildx
goarch: arm
goarm: 7
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm/v7"
docker_manifests:
- name_template: ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-armv6
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-armv7
- name_template: ghcr.io/0xerr0r/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-armv6
- ghcr.io/0xerr0r/{{ .ProjectName }}:{{ .Version }}-armv7
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-SNAPSHOT"
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'