-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
104 lines (101 loc) · 3.16 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
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
100
101
102
103
104
project_name: transformers
env:
- COSIGN_EXPERIMENTAL=true
- GO111MODULE=on
gomod:
proxy: true
builds:
- id: "substition"
main: main.go
dir: transformers/substitution/
binary: substitution
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- >-
-X github.com/buttahtoast/transformers/substitution/cmd.Version={{ .Tag }}
-X github.com/buttahtoast/transformers/substitution/cmd.GitCommit={{ .Commit }}
-X github.com/buttahtoast/transformers/substitution/cmd.BuildDate={{ .Date }}
release:
footer: |
**Full Changelog**: https://github.com/buttahtoast/{{ .ProjectName }}/compare/{{ .PreviousTag }}...{{ .Tag }}
* * *
**Docker Images**
- `ghcr.io/buttahtoast/{{ .ProjectName }}/substitution:{{ .Tag }}`
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
dockers:
- image_templates: [ "ghcr.io/buttahtoast/{{ .ProjectName }}/substitution:{{ .Tag }}" ]
dockerfile: transformers/substitution/Dockerfile
goos: linux
goarch: amd64
use: buildx
skip_push: false
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.description=kustomize transformer"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name=substitution"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.vendor=Buttahtoast"
- "--label=org.opencontainers.image.licenses=Apache-2.0"
- "--label=org.opencontainers.image.source=https://github.com/butthatoast/transformers/substitution"
- "--label=org.opencontainers.image.authors=Buttahtoast"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/transformers/substitution/README.md"
- "--label=io.artifacthub.package.license=Apache-2.0"
changelog:
sort: asc
use: github
filters:
exclude:
- '^test:'
- '^chore'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: Dependency updates
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: 'New Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation updates'
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: 'Build process updates'
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999
#signs:
# - cmd: cosign
# stdin: '{{ .Env.COSIGN_PWD }}'
# args: ["sign-blob", "--key=cosign.key", "--output-signature=${signature}", "${artifact}"]
# artifacts: checksum
#docker_signs:
#- cmd: cosign
# artifacts: manifests
# output: true
# stdin: '{{ .Env.COSIGN_PWD }}'
# args:
# - 'sign'
# - '${artifact}@${digest}'
# - --yes