Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add krane to release archive #1443

Merged
merged 1 commit into from Aug 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 35 additions & 4 deletions .goreleaser.yml
Expand Up @@ -15,8 +15,10 @@ builds:
flags:
- -trimpath
ldflags:
- "-s -w -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}"
- "-s -w -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}"
- -s
- -w
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
goarch:
- amd64
- arm
Expand All @@ -39,8 +41,37 @@ builds:
flags:
- -trimpath
ldflags:
- "-s -w -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}"
- "-s -w -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}"
- -s
- -w
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
goarch:
- amd64
- arm
- arm64
- 386
- s390x
goos:
- linux
- darwin
- windows
ignore:
- goos: windows
goarch: 386

- id: krane
env:
- CGO_ENABLED=0
main: ./main.go
dir: ./cmd/krane
binary: krane
flags:
- -trimpath
ldflags:
- -s
- -w
- -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
- -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
imjasonh marked this conversation as resolved.
Show resolved Hide resolved
goarch:
- amd64
- arm
Expand Down