-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
77 lines (70 loc) · 1.47 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
project_name: gateh8
builds:
- id: gateh8
main: ./cmd/main.go
binary: gateh8
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- '-s -w -extldflags "-static"'
hooks:
pre:
- go mod download
post:
- echo "Build completed"
archives:
- id: windows
format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- gateh8
files:
- license*
- readme*
- format: tar.gz
builds:
- gateh8
files:
- license*
- readme*
dockers:
- image_templates:
- 'yarlson/gateh8:{{ .Tag }}-amd64'
use: buildx
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--builder=mybuilder"
goarch: amd64
- image_templates:
- 'yarlson/gateh8:{{ .Tag }}-arm64'
use: buildx
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--builder=mybuilder"
goarch: arm64
docker_manifests:
- name_template: 'yarlson/gateh8:{{ .Tag }}'
image_templates:
- 'yarlson/gateh8:{{ .Tag }}-amd64'
- 'yarlson/gateh8:{{ .Tag }}-arm64'
checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"
changelog:
skip: true