From c38b0351e4da066d6d458acefa5c8f65e43e1e45 Mon Sep 17 00:00:00 2001 From: jamesread Date: Wed, 24 Aug 2022 20:50:42 +0100 Subject: [PATCH] cicd: Short commit hash --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5356a78..a3c3b34 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -34,12 +34,12 @@ builds: goarch: arm64 ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} + - -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{ .CommitDate }} checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Branch }}-{{ .Commit }}" + name_template: "{{ .Branch }}-{{ .ShortCommit }}" changelog: sort: asc filters: