-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
57 lines (51 loc) · 1.35 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
# Make sure to check the documentation at http://goreleaser.com
version: 2
before:
hooks:
- go mod tidy
builds:
- binary: gromit
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
ldflags:
- -X github.com/TykTechnologies/gromit/util.version={{.Version}}
- -X github.com/TykTechnologies/gromit/util.commit={{.Commit}}
- -X github.com/TykTechnologies/gromit/util.buildDate={{.Date}}
mod_timestamp: '{{ .CommitTimestamp }}'
dockers:
- image_templates:
- "tykio/gromit:latest"
- "tykio/gromit:v{{ .Major }}.{{ .Minor }}{{.Prerelease}}"
- "tykio/gromit:{{.Tag}}"
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
changelog:
sort: asc
filters:
exclude:
- '^utils:'
- (?i)typo
- 'Merge (pull request|branch)'
- '\[CI\]'
- '(?i)\[Buddy\]'
- 'cherry picked'
- '^rel-eng:'
- '^minor:'
release:
github:
owner: TykTechnologies
name: gromit
discussion_category_name: General
prerelease: auto
name_template: "{{.ProjectName}}-v{{.Version}}"