Skip to content

Commit c591adc

Browse files
committed
change tag order
Signed-off-by: Austin Abro <[email protected]>
1 parent 0ad2cd1 commit c591adc

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.goreleaser.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2
22

3+
git:
4+
tag_sort: -version:creatordate
5+
36
before:
47
hooks:
58
- go mod tidy
@@ -18,7 +21,7 @@ builds:
1821
- darwin
1922
# - windows
2023
ldflags:
21-
- -s -w -X github.com/zarf-dev/zarf/src/config.CLIVersion={{.Env.TAG}}
24+
- -s -w -X github.com/zarf-dev/zarf/src/config.CLIVersion={{.Tag}}
2225
- -X k8s.io/component-base/version.gitVersion=v{{.Env.K8S_MODULES_MAJOR_VER}}.{{.Env.K8S_MODULES_MINOR_VER}}.{{.Env.K8S_MODULES_PATCH_VER}}
2326
- -X k8s.io/component-base/version.gitCommit={{.FullCommit}}
2427
- -X k8s.io/component-base/version.buildDate={{.Date}}
@@ -38,7 +41,7 @@ builds:
3841
# Save the built artifacts as binaries (instead of wrapping them in a tarball)
3942
archives:
4043
- formats: [ 'binary' ]
41-
name_template: "{{ .ProjectName }}_{{.Env.TAG}}_{{- title .Os }}_{{ .Arch }}"
44+
name_template: "{{ .ProjectName }}_{{.Tag}}_{{- title .Os }}_{{ .Arch }}"
4245

4346
# generate a sha256 checksum of all release artifacts
4447
# NOTE: We are explicitly adding the init-packages that are built prior to GoReleaser stage in the GitHub Actions workflow
@@ -52,7 +55,7 @@ checksum:
5255
sboms:
5356
- artifacts: binary
5457
documents:
55-
- "sbom_{{ .ProjectName }}_{{.Env.TAG}}_{{- title .Os }}_{{ .Arch }}.sbom"
58+
- "sbom_{{ .ProjectName }}_{{.Tag}}_{{- title .Os }}_{{ .Arch }}.sbom"
5659

5760
snapshot:
5861
version_template: "{{ incpatch .Version }}-snapshot"
@@ -79,15 +82,15 @@ release:
7982
# owner: defenseunicorns
8083
# name: homebrew-tap
8184
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
82-
# branch: "{{ .ProjectName }}-{{.Env.TAG}}"
85+
# branch: "{{ .ProjectName }}-{{.Tag}}"
8386
# pull_request:
8487
# enabled: true
8588
# base:
8689
# branch: main
8790
# owner: defenseunicorns
8891
# name: homebrew-tap
8992

90-
# commit_msg_template: "build(release): upgrade {{ .ProjectName }} to {{.Env.TAG}}"
93+
# commit_msg_template: "build(release): upgrade {{ .ProjectName }} to {{.Tag}}"
9194
# homepage: "https://zarf.dev/"
9295
# description: "DevSecOps for Airgap"
9396

@@ -98,13 +101,13 @@ release:
98101
# owner: defenseunicorns
99102
# name: homebrew-tap
100103
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
101-
# branch: "{{ .ProjectName }}-{{.Env.TAG}}"
104+
# branch: "{{ .ProjectName }}-{{.Tag}}"
102105
# pull_request:
103106
# enabled: true
104107
# base:
105108
# branch: main
106109
# owner: defenseunicorns
107110
# name: homebrew-tap
108-
# commit_msg_template: "build(release): {{ .ProjectName }}@{{.Env.TAG}}"
111+
# commit_msg_template: "build(release): {{ .ProjectName }}@{{.Tag}}"
109112
# homepage: "https://zarf.dev/"
110113
# description: "DevSecOps for Airgap"

0 commit comments

Comments
 (0)