-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
99 lines (88 loc) · 1.91 KB
/
Copy path.goreleaser.yml
File metadata and controls
99 lines (88 loc) · 1.91 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
# GoReleaser configuration for kat
before:
hooks:
- go mod download
- go mod tidy
report_sizes: true
builds:
- main: ./cmd/kat/
id: "kat"
binary: kat
env:
- CGO_ENABLED=0
- GO111MODULE=on
flags:
- -trimpath
- -buildvcs=false
goos:
- linux
- darwin
# need help with testing on windows to ensure this works
# - windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/BolajiOlajide/kat/internal/version.version={{.Version}}
archives:
- formats: [tar.gz]
wrap_in_directory: false
name_template: >-
kat_{{ .Os }}_{{ .Arch }}
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
dockers_v2:
- id: kat
ids:
- kat
dockerfile: Dockerfile
images:
- "docker.io/cooproton12/kat"
tags:
- "v{{ .Version }}"
- latest
labels:
"org.opencontainers.image.created": "{{ .Date }}"
"org.opencontainers.image.title": "{{ .ProjectName }}"
"org.opencontainers.image.version": "{{ .Version }}"
"org.opencontainers.image.revision": "{{ .FullCommit }}"
"org.opencontainers.image.source": "https://github.com/BolajiOlajide/kat"
"org.opencontainers.image.licenses": "MIT"
platforms:
- linux/amd64
- linux/arm64
changelog:
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^chore:'
signs:
- artifacts: checksum
cmd: gpg2
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
github:
owner: BolajiOlajide
name: kat
draft: true
replace_existing_draft: true
mode: append
# Header for the release body.
#
# Templates: allowed.
header: |
## Kat ({{ .Version }})
Welcome to this new release!