-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
206 lines (197 loc) · 6.26 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
project_name: Kard-bot
before:
hooks:
# Creates a tarball to include with the release which includes only
# the files necessary to run Kard-bot in a docker container.
# Outputs a file named kardbot-{{ .Tag }}.tar.gz
# to be included in the extra_files section of release.
- ./package.sh
- cp .env_example .env
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- dragonfly
- freebsd
- illumos
- js
- linux
- netbsd
- openbsd
- plan9
- solaris
- windows
goarch:
- amd64
- 386
- arm
- arm64
- ppc64le
- ppc64
- mips64le
- mips64
- mipsle
- mips
- s390x
- wasm
goarm:
- 5
- 6
- 7
binary: "{{ .ProjectName }}"
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
files:
- config/*
- assets/*
- .env
- Robo_cat.png
dockers:
- image_templates:
- "tkvarfordt/kardbot:latest-arm64"
- "tkvarfordt/kardbot:{{ .Tag }}-arm64"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-arm64"
- "ghcr.io/kardbord/kard-bot:latest-arm64"
goos: linux
goarch: arm64
goarm: "7"
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.source=https://github.com/Kardbord/Kard-bot"
- "--label=org.opencontainers.image.licenses=AGPL-3.0"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/arm64/v8"
extra_files:
- config
- assets
- .env_example
- Robo_cat.png
- README.md
- LICENSE
- image_templates:
- "tkvarfordt/kardbot:latest-amd64"
- "tkvarfordt/kardbot:{{ .Tag }}-amd64"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-amd64"
- "ghcr.io/kardbord/kard-bot:latest-amd64"
goos: linux
goarch: amd64
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.source=https://github.com/Kardbord/Kard-bot"
- "--label=org.opencontainers.image.licenses=AGPL-3.0"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/amd64"
extra_files:
- config
- assets
- .env_example
- Robo_cat.png
- README.md
- LICENSE
- image_templates:
- "tkvarfordt/kardbot:latest-armv7"
- "tkvarfordt/kardbot:{{ .Tag }}-armv7"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-armv7"
- "ghcr.io/kardbord/kard-bot:latest-armv7"
goos: linux
goarch: arm
goarm: "7"
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.source=https://github.com/Kardbord/Kard-bot"
- "--label=org.opencontainers.image.licenses=AGPL-3.0"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/arm/v7"
extra_files:
- config
- assets
- .env_example
- Robo_cat.png
- README.md
- LICENSE
- image_templates:
- "tkvarfordt/kardbot:latest-armv6"
- "tkvarfordt/kardbot:{{ .Tag }}-armv6"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-armv6"
- "ghcr.io/kardbord/kard-bot:latest-armv6"
goos: linux
goarch: arm
goarm: "6"
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.source=https://github.com/Kardbord/Kard-bot"
- "--label=org.opencontainers.image.licenses=AGPL-3.0"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/arm/v6"
extra_files:
- config
- assets
- .env_example
- Robo_cat.png
- README.md
- LICENSE
docker_manifests:
- name_template: "tkvarfordt/kardbot:latest"
image_templates:
- "tkvarfordt/kardbot:latest-arm64"
- "tkvarfordt/kardbot:latest-amd64"
- "tkvarfordt/kardbot:latest-armv7"
- "tkvarfordt/kardbot:latest-armv6"
- name_template: "tkvarfordt/kardbot:{{ .Tag }}"
image_templates:
- "tkvarfordt/kardbot:{{ .Tag }}-arm64"
- "tkvarfordt/kardbot:{{ .Tag }}-amd64"
- "tkvarfordt/kardbot:{{ .Tag }}-armv7"
- "tkvarfordt/kardbot:{{ .Tag }}-armv6"
- name_template: "ghcr.io/kardbord/kard-bot:latest"
image_templates:
- "ghcr.io/kardbord/kard-bot:latest-arm64"
- "ghcr.io/kardbord/kard-bot:latest-amd64"
- "ghcr.io/kardbord/kard-bot:latest-armv7"
- "ghcr.io/kardbord/kard-bot:latest-armv6"
- name_template: "ghcr.io/kardbord/kard-bot:{{ .Tag }}"
image_templates:
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-arm64"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-amd64"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-armv7"
- "ghcr.io/kardbord/kard-bot:{{ .Tag }}-armv6"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
release:
draft: false
prerelease: auto
mode: keep-existing
name_template: "{{ .Tag }}"
extra_files:
- glob: "./kardbot-*.tar.gz"
header: |
**Full Changelog**: https://github.com/Kardbord/Kard-bot/compare/{{ .PreviousTag }}...{{ .Tag }}
footer: |
## Quick Start
To get started with hosting your own Kard-bot instance, download the precompiled binary for your architecture below. If you plan on using Docker to host Kard-bot, download kardbot-{{ .Tag }}.tar.gz. Then, follow the instructions included in the accompanying README.md.