File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,11 @@ builds:
66 - id : " linux"
77 env :
88 - CGO_ENABLED=0
9- - OS={{ .Os }}
10- - ARCH={{ .Arch }}
119 mod_timestamp : " {{ .CommitTimestamp }}"
1210 flags :
1311 - -trimpath
1412 ldflags :
15- - ' -s -w -X "internal/version.Platform={{ .Env.OS }}/{{ .Env.ARCH }} " -X "github.com/slosive/sloscribe/internal/version.Version={{ .Version }}" -X "github.com/slosive/sloscribe/internal/version.Commit={{ .Commit }}" -X "github.com/slosive/sloscribe/internal/version.Date={{ .Date }}"'
13+ - ' -s -w -X "internal/version.Platform=linux/unknown " -X "github.com/slosive/sloscribe/internal/version.Version={{ .Version }}" -X "github.com/slosive/sloscribe/internal/version.Commit={{ .Commit }}" -X "github.com/slosive/sloscribe/internal/version.Date={{ .Date }}"'
1614 binary : " {{ .ProjectName }}"
1715 goos :
1816 - linux
@@ -23,13 +21,11 @@ builds:
2321 - id : " darwin"
2422 env :
2523 - CGO_ENABLED=0
26- - OS={{ .Os }}
27- - ARCH={{ .Arch }}
2824 mod_timestamp : " {{ .CommitTimestamp }}"
2925 flags :
3026 - -trimpath
3127 ldflags :
32- - ' -s -w -X "github.com/slosive/sloscribe/internal/version.Platform={{ .Env.OS }}/{{ .Env.ARCH }} " -X "github.com/slosive/sloscribe/internal/version.Version={{ .Version }}" -X "github.com/slosive/sloscribe/internal/version.Commit={{.Commit}}" -X "github.com/slosive/sloscribe/internal/version.Date={{ .Date }}"'
28+ - ' -s -w -X "github.com/slosive/sloscribe/internal/version.Platform=darwin/unknown " -X "github.com/slosive/sloscribe/internal/version.Version={{ .Version }}" -X "github.com/slosive/sloscribe/internal/version.Commit={{.Commit}}" -X "github.com/slosive/sloscribe/internal/version.Date={{ .Date }}"'
3329 binary : " {{ .ProjectName }}"
3430 goos :
3531 - darwin
@@ -54,9 +50,6 @@ archives:
5450kos :
5551 - working_dir : .
5652 id : " linux"
57- env :
58- - OS=linux
59- - ARCH=unknown
6053 build : " linux"
6154 base_image : gcr.io/distroless/base:nonroot
6255 labels :
You can’t perform that action at this time.
0 commit comments