This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
73 lines (66 loc) · 1.82 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
project_name: ghx
changelog:
use: github
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
filters:
exclude:
- '^docs:'
- '^chore:'
- '^build:'
release:
footer: |
### Summary
**Full Changelog**: https://github.com/aweris/ghx/compare/{{ .PreviousTag }}...{{ .Tag }}
builds:
- id: ghx
binary: ghx
dir: .
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s
- -w
- -X 'github.com/aweris/ghx/internal/version.commitDate={{ .CommitDate }}'
- -X 'github.com/aweris/ghx/internal/version.gitCommit={{ .FullCommit }}'
- -X 'github.com/aweris/ghx/internal/version.gitVersion=v{{ trimprefix .Version "v" }}'
- -X 'github.com/aweris/ghx/internal/version.major={{ .Major }}'
- -X 'github.com/aweris/ghx/internal/version.minor={{ .Minor }}'
goos:
- linux
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
# package only the binary
archives:
- format: gz
files:
- none*
dockers:
- use: buildx
goos: linux
goarch: amd64
dockerfile:
Dockerfile
image_templates:
- ghcr.io/aweris/{{ .ProjectName }}:v{{trimprefix .Version "v"}}
- ghcr.io/aweris/{{ .ProjectName }}:latest
build_flag_templates:
- "--platform=linux/amd64"
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: '{{ incpatch .Version }}-snapshot'