Skip to content

Commit 87b3a79

Browse files
authored
feat: Add krane to release archive (#1443)
Signed-off-by: MisterMX <mbxd12@web.de> Signed-off-by: MisterMX <mbxd12@web.de>
1 parent e2d575c commit 87b3a79

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

.goreleaser.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ builds:
1515
flags:
1616
- -trimpath
1717
ldflags:
18-
- "-s -w -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}"
19-
- "-s -w -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}"
18+
- -s
19+
- -w
20+
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
21+
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
2022
goarch:
2123
- amd64
2224
- arm
@@ -39,8 +41,37 @@ builds:
3941
flags:
4042
- -trimpath
4143
ldflags:
42-
- "-s -w -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}"
43-
- "-s -w -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}"
44+
- -s
45+
- -w
46+
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
47+
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
48+
goarch:
49+
- amd64
50+
- arm
51+
- arm64
52+
- 386
53+
- s390x
54+
goos:
55+
- linux
56+
- darwin
57+
- windows
58+
ignore:
59+
- goos: windows
60+
goarch: 386
61+
62+
- id: krane
63+
env:
64+
- CGO_ENABLED=0
65+
main: ./main.go
66+
dir: ./cmd/krane
67+
binary: krane
68+
flags:
69+
- -trimpath
70+
ldflags:
71+
- -s
72+
- -w
73+
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
74+
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
4475
goarch:
4576
- amd64
4677
- arm

0 commit comments

Comments
 (0)