Browse Source

cicd: Short commit hash

jamesread 3 năm trước cách đây
mục cha
commit
c38b0351e4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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: