-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
58 lines (50 loc) · 1.37 KB
/
.goreleaser.yml
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
# Configuration for GoReleaser
# https://goreleaser.com/
#
# Local test: contrib/build-all
#
version: 2
project_name: dossier
builds:
- id: dossiercli
main: ./cmd/dossiercli/
binary: dossiercli
env:
- CGO_ENABLED=0
targets:
- linux_amd64_v1
flags:
- -trimpath
dockers:
- ids:
- dossiercli
use: buildx
dockerfile: contrib/Dockerfile.goreleaser
extra_files:
- LICENSE
- README.md
- internal/testfiles/acme-invoice-11321-19.pdf
- pkg/sketch/testdata/acme-invoice.textproto
image_templates:
- ghcr.io/hansmi/dossier-cli:{{.Tag}}
- ghcr.io/hansmi/dossier-cli:v{{.Major}}
- ghcr.io/hansmi/dossier-cli:latest
build_flag_templates:
- --pull
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.name={{.ProjectName}}
- --label=org.opencontainers.image.revision={{.FullCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.source={{.GitURL}}
changelog:
groups:
- title: Dependencies
regexp: '(?i)^[a-f0-9]{8,64}\s+Bump\s+[-.\w]+/\w.*\sto\s'
order: 1
- order: 0
release:
draft: true
prerelease: auto
snapshot:
version_template: '{{ incpatch .Version }}-snapshot{{ replace (replace .Date ":" "") "-" "" }}+g{{ .ShortCommit }}'
# vim: set sw=2 sts=2 et :