Explorar o código

cicd: Short commit hash

jamesread %!s(int64=3) %!d(string=hai) anos
pai
achega
c38b0351e4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      .goreleaser.yml

+ 2 - 2
.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: