-
Notifications
You must be signed in to change notification settings - Fork 828
/
goreleaser.yml
86 lines (86 loc) · 2.2 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
build:
main: ./main.go
binary: watchtower
goos:
- linux
- windows
goarch:
- amd64
- 386
- arm
- arm64
ldflags:
- -s -w -X github.com/containrrr/watchtower/internal/meta.Version={{.Version}}
archives:
-
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
format: tar.gz
replacements:
arm: armhf
arm64: arm64v8
amd64: amd64
386: 386
darwin: macOS
linux: linux
format_overrides:
- goos: windows
format: zip
files:
- LICENSE.md
dockers:
-
use_buildx: true
build_flag_templates: [ "--platform=linux/amd64" ]
goos: linux
goarch: amd64
goarm: ''
dockerfile: dockerfiles/Dockerfile
image_templates:
- containrrr/watchtower:amd64-{{ .Version }}
- containrrr/watchtower:amd64-latest
- ghcr.io/containrrr/watchtower:amd64-{{ .Version }}
- ghcr.io/containrrr/watchtower:amd64-latest
binaries:
- watchtower
-
use_buildx: true
build_flag_templates: [ "--platform=linux/386" ]
goos: linux
goarch: 386
goarm: ''
dockerfile: dockerfiles/Dockerfile
image_templates:
- containrrr/watchtower:i386-{{ .Version }}
- containrrr/watchtower:i386-latest
- ghcr.io/containrrr/watchtower:i386-{{ .Version }}
- ghcr.io/containrrr/watchtower:i386-latest
binaries:
- watchtower
-
use_buildx: true
build_flag_templates: [ "--platform=linux/arm/v6" ]
goos: linux
goarch: arm
goarm: 6
dockerfile: dockerfiles/Dockerfile
image_templates:
- containrrr/watchtower:armhf-{{ .Version }}
- containrrr/watchtower:armhf-latest
- ghcr.io/containrrr/watchtower:armhf-{{ .Version }}
- ghcr.io/containrrr/watchtower:armhf-latest
binaries:
- watchtower
-
use_buildx: true
build_flag_templates: [ "--platform=linux/arm64/v8" ]
goos: linux
goarch: arm64
goarm: ''
dockerfile: dockerfiles/Dockerfile
image_templates:
- containrrr/watchtower:arm64v8-{{ .Version }}
- containrrr/watchtower:arm64v8-latest
- ghcr.io/containrrr/watchtower:arm64v8-{{ .Version }}
- ghcr.io/containrrr/watchtower:arm64v8-latest
binaries:
- watchtower