-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
99 lines (91 loc) · 2.69 KB
/
Copy path.goreleaser.yaml
File metadata and controls
99 lines (91 loc) · 2.69 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
version: 2
project_name: mantle
builds:
- id: mantle
main: ./cmd/mantle/
binary: mantle
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/dvflw/mantle/internal/version.Version={{.Version}}
- -X github.com/dvflw/mantle/internal/version.Commit={{.ShortCommit}}
- -X github.com/dvflw/mantle/internal/version.Date={{.Date}}
archives:
- id: default
formats: ["tar.gz"]
name_template: "mantle-{{ .Os }}-{{ .Arch }}"
files:
# Bundle the license so every distributed archive satisfies BUSL-1.1's
# notice requirement. Path is relative to the goreleaser workdir
# (packages/engine); LICENSE lives at the repo root.
- src: "../../LICENSE"
dst: "LICENSE"
# Third-party license notices generated by go-licenses during release CI.
- src: "NOTICE"
dst: "NOTICE"
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
sort: asc
groups:
- title: Features
regexp: '^.*?feat(\(.+\))?\!?:.*$'
order: 0
- title: Bug Fixes
regexp: '^.*?fix(\(.+\))?\!?:.*$'
order: 1
- title: Other
order: 999
dockers_v2:
- image_templates:
- "ghcr.io/dvflw/mantle:{{ .Version }}-amd64"
use: buildx
ids: [mantle]
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/dvflw/mantle:{{ .Version }}-arm64"
use: buildx
ids: [mantle]
goos: linux
goarch: arm64
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
- name_template: "ghcr.io/dvflw/mantle:{{ .Version }}"
image_templates:
- "ghcr.io/dvflw/mantle:{{ .Version }}-amd64"
- "ghcr.io/dvflw/mantle:{{ .Version }}-arm64"
- name_template: "ghcr.io/dvflw/mantle:{{ .Major }}.{{ .Minor }}"
image_templates:
- "ghcr.io/dvflw/mantle:{{ .Version }}-amd64"
- "ghcr.io/dvflw/mantle:{{ .Version }}-arm64"
skip_push: "{{ if or .IsSnapshot .Prerelease }}true{{ end }}"
- name_template: "ghcr.io/dvflw/mantle:{{ .Major }}"
image_templates:
- "ghcr.io/dvflw/mantle:{{ .Version }}-amd64"
- "ghcr.io/dvflw/mantle:{{ .Version }}-arm64"
skip_push: "{{ if or .IsSnapshot .Prerelease }}true{{ end }}"
- name_template: "ghcr.io/dvflw/mantle:latest"
image_templates:
- "ghcr.io/dvflw/mantle:{{ .Version }}-amd64"
- "ghcr.io/dvflw/mantle:{{ .Version }}-arm64"
skip_push: "{{ if or .IsSnapshot .Prerelease }}true{{ end }}"
release:
github:
owner: dvflw
name: mantle
draft: false
prerelease: auto