-
Notifications
You must be signed in to change notification settings - Fork 425
Expand file tree
/
Copy path.goreleaser.yml
More file actions
116 lines (106 loc) · 2.16 KB
/
.goreleaser.yml
File metadata and controls
116 lines (106 loc) · 2.16 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: 2
project_name: dockerize
before:
hooks:
- go mod tidy
builds:
# Standard builds
- id: default
binary: dockerize
ldflags:
- -X main.buildVersion={{ .Tag }}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- "386"
- arm
- ppc64le
- s390x
- riscv64
goarm:
- "5"
- "6"
ignore:
- goos: darwin
goarch: "386"
- goos: darwin
goarch: arm
- goos: darwin
goarch: ppc64le
- goos: darwin
goarch: s390x
- goos: darwin
goarch: riscv64
env:
- CGO_ENABLED=0
# Alpine/static builds (netgo tag)
- id: alpine
binary: dockerize
ldflags:
- -X main.buildVersion={{ .Tag }}
tags:
- netgo
flags:
- -installsuffix=netgo
goos:
- linux
goarch:
- amd64
- arm64
- ppc64le
env:
- CGO_ENABLED=0
archives:
- id: default-archive
ids:
- default
name_template: "dockerize-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}-{{ .Tag }}"
formats:
- tar.gz
- id: alpine-archive
ids:
- alpine
name_template: "dockerize-alpine-linux-{{ .Arch }}-{{ .Tag }}"
formats:
- tar.gz
dockers_v2:
- images:
- "ghcr.io/jwilder/dockerize"
tags:
- "{{ .Tag }}"
- latest
platforms:
- linux/amd64
- linux/arm64
dockerfile: Dockerfile.goreleaser
ids:
- default
labels:
"org.opencontainers.image.title": "{{ .ProjectName }}"
"org.opencontainers.image.version": "{{ .Tag }}"
"org.opencontainers.image.source": "https://github.com/jwilder/dockerize"
"org.opencontainers.image.revision": "{{ .FullCommit }}"
"org.opencontainers.image.created": "{{ .Date }}"
"maintainer": "Jason Wilder <mail@jasonwilder.com>"
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^chore:"
- "Merge pull request"
- "Merge branch"
release:
github:
owner: jwilder
name: dockerize
draft: false
prerelease: auto
name_template: "{{ .Tag }}"