This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.goreleaser.yml
193 lines (189 loc) · 7.32 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
project_name: subst
env:
- COSIGN_EXPERIMENTAL=true
- GO111MODULE=on
before:
hooks:
- go mod download
gomod:
proxy: true
builds:
- main: subst/main.go
binary: subst
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- linux
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- >-
-X github.com/buttahtoast/subst/subst/cmd.Version={{ .Tag }}
-X github.com/buttahtoast/subst/subst/cmd.GitCommit={{ .Commit }}
-X github.com/buttahtoast/subst/subst/cmd.BuildDate={{ .Date }}
release:
footer: |
**Full Changelog**: https://github.com/buttahtoast/{{ .ProjectName }}/compare/{{ .PreviousTag }}...{{ .Tag }}
* * *
**Docker Images**
- `ghcr.io/buttahtoast/{{ .ProjectName }}:{{ .Tag }}`
- `ghcr.io/buttahtoast/{{ .ProjectName }}-cmp:{{ .Tag }}`
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
dockers:
- image_templates:
- "ghcr.io/buttahtoast/{{ .ProjectName }}:{{ .Tag }}"
- "ghcr.io/buttahtoast/{{ .ProjectName }}:latest"
dockerfile: Dockerfile.goreleaser
goos: linux
goarch: amd64
use: buildx
skip_push: false
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.description=substitute your kustomize files"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}-cmp"
- "--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/subst"
- "--label=org.opencontainers.image.authors=Buttahtoast"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/buttahtoast/subst/main/README.md"
- "--label=io.artifacthub.package.logo-url=https://github.com/buttahtoast/subst/raw/main/img/subst.png"
- "--label=io.artifacthub.package.license=Apache-2.0"
#- image_templates: [ "ghcr.io/buttahtoast/{{ .ProjectName }}:{{ .Tag }}" ]
# dockerfile: Dockerfile
# goos: linux
# goarch: arm64
# use: buildx
# skip_push: false
# build_flag_templates:
# - --platform=linux/arm64
# - "--label=org.opencontainers.image description=substitute your kustomize files"
# - "--label=o rg.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image. name={{.ProjectName}}-cmp"
# - "--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/subst"
# - "--label=org.opencontainers.image.authors=Buttahtoast"
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/buttahtoast/subst/main/README.md"
# - "--label=io.artifacthub.package.logo-url=https://github.com/buttahtoast/subst/raw/main/img/subst.png"
# - "--label=io.artifacthub.package.license=Apache-2.0"
- image_templates:
- "ghcr.io/buttahtoast/{{ .ProjectName }}-cmp:{{ .Tag }}"
- "ghcr.io/buttahtoast/{{ .ProjectName }}-cmp:latest"
dockerfile: argocd-cmp/Dockerfile.goreleaser
goos: linux
goarch: amd64
use: buildx
skip_push: false
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.description=substitute your kustomize files (ArgoCD Plugin)"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}-cmp"
- "--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/subst"
- "--label=org.opencontainers.image.authors=Buttahtoast"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/buttahtoast/subst/main/README.md"
- "--label=io.artifacthub.package.logo-url=https://github.com/buttahtoast/subst/raw/main/img/subst.png"
- "--label=io.artifacthub.package.license=Apache-2.0"
extra_files:
- argocd-cmp/cmp.yaml
- argocd-cmp/entrypoint.sh
#- image_templates: [ "ghcr.io/buttahtoast/{{ .ProjectName }}-cmp:{{ .Tag }}" ]
# dockerfile: Dockerfile.argo-cmp
# goos: linux
# goarch: arm64
# use: buildx
# skip_push: false
# build_flag_templates:
# - --platform=linux/arm64
# - "--label=org.opencontainers.image.description=substitute your kustomize files (ArgoCD Plugin)"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.name={{.ProjectName}}-cmp"
# - "--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/subst"
# - "--label=org.opencontainers.image.authors=Buttahtoast"
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/buttahtoast/subst/main/README.md"
# - "--label=io.artifacthub.package.logo-url=https://github.com/buttahtoast/subst/raw/main/img/subst.png"
# - "--label=io.artifacthub.package.license=Apache-2.0"
# extra_files:
# - argocd-cmp/cmp.yaml
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
sboms:
- artifacts: archive
signs:
- cmd: cosign
args:
- "sign-blob"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
docker_signs:
- cmd: cosign
artifacts: manifests
output: true
args:
- 'sign'
- "--output-signature=${signature}"
- '${artifact}@${digest}'
- --yes
#brews:
# - tap:
# owner: buttahtoast
# name: subst
# branch: main
# license: Apache-2.0
# homepage: "github.com/buttahtoast/subst"
# description: "subst - Substitution based on Kustomize"
# post_install: |
# puts '🌈 subst installed 🌈'