-
Notifications
You must be signed in to change notification settings - Fork 8
/
.goreleaser.yaml
58 lines (54 loc) · 1.72 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
version: 2
project_name: base16-builder-go
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- format: binary
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
# Docker is split into 2 sections - the images we're building and the manifests
# we're linking them into. We start off by specifying an image for each platform
# we're building for.
dockers:
- image_templates: ["ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-amd64"]
use: buildx
build_flag_templates:
- --platform=linux/amd64
extra_files:
- entrypoint.sh
- image_templates: ["ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-arm64"]
goarch: arm64
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
extra_files:
- entrypoint.sh
# The manifests link together multiple built images as a single tag. This lets
# us bundle both an amd64 and arm64 version of the same image as the same tag.
docker_manifests:
- name_template: "ghcr.io/tinted-theming/base16-builder-go:{{ .Tag }}"
image_templates:
- "ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-amd64"
- "ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-arm64"
- name_template: "ghcr.io/tinted-theming/base16-builder-go:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-amd64"
- "ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-arm64"
- name_template: "ghcr.io/tinted-theming/base16-builder-go:latest"
image_templates:
- "ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-amd64"
- "ghcr.io/tinted-theming/base16-builder-go:{{ .Version }}-arm64"