Ver Fonte

cicd: Short commit hash

jamesread há 3 anos atrás
pai
commit
c38b0351e4
1 ficheiros alterados com 2 adições e 2 exclusões
  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: