-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yml
49 lines (43 loc) · 972 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: 2
before:
hooks:
- go mod tidy
builds:
- id: "inhooks"
binary: "inhooks"
main: ./cmd/api/main.go
goos:
- linux
- darwin
- windows
env:
- CGO_ENABLED=0
archives:
- format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
dockers:
- dockerfile: Dockerfile-goreleaser
image_templates:
- "ghcr.io/didil/inhooks:{{ .Tag }}-amd64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- dockerfile: Dockerfile-goreleaser
image_templates:
- "ghcr.io/didil/inhooks:{{ .Tag }}-arm64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
goarch: arm64
docker_manifests:
- name_template: "ghcr.io/didil/inhooks:{{ .Tag }}"
image_templates:
- "ghcr.io/didil/inhooks:{{ .Tag }}-amd64"
- "ghcr.io/didil/inhooks:{{ .Tag }}-arm64"