-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
84 lines (79 loc) · 2.06 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
---
project_name: go-init-sentinel
builds:
- binary: go-init-sentinel
env:
- CGO_ENABLED=0
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags: -s -w -X main.version={{.Version}}+{{.ShortCommit}}
goos:
- linux
- darwin
- freebsd
- openbsd
- dragonfly
- netbsd
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- ''
ignore:
- goos: darwin
goarch: "386"
archives:
- id: go-init-sentinel
format: binary
replacements:
386: i386
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- Merge pull request
- Merge branch
dockers:
# primary docker image for amd64 arch
-
dockerfile: Dockerfile
binaries:
- go-init-sentinel
goos: linux
goarch: amd64
image_templates:
- "joemiller/go-init-sentinel:{{ .Tag }}" # v1.0.0
- "joemiller/go-init-sentinel:v{{ .Major }}" # v1
- "joemiller/go-init-sentinel:v{{ .Major }}.{{ .Minor }}" # v1.0
- "joemiller/go-init-sentinel:latest"
# build a docker image for arm64 arch
-
dockerfile: Dockerfile
binaries:
- go-init-sentinel
goos: linux
goarch: arm64
goarm: ''
image_templates:
- "joemiller/go-init-sentinel:{{ .Tag }}-arm64" # v1.0.0-arm64
- "joemiller/go-init-sentinel:v{{ .Major }}-arm64" # v1-arm64
- "joemiller/go-init-sentinel:v{{ .Major }}.{{ .Minor }}-arm64" # v1.0-arm64
- "joemiller/go-init-sentinel:latest-arm64"
# build a docker image for arm
-
dockerfile: Dockerfile
binaries:
- go-init-sentinel
goos: linux
goarch: arm
goarm: ''
image_templates:
- "joemiller/go-init-sentinel:{{ .Tag }}-arm" # v1.0.0-arm
- "joemiller/go-init-sentinel:v{{ .Major }}-arm" # v1-arm
- "joemiller/go-init-sentinel:v{{ .Major }}.{{ .Minor }}-arm" # v1.0-arm
- "joemiller/go-init-sentinel:latest-arm64"