diff --git a/.goreleaser.yml b/.goreleaser.yml index 64460a5a2..101a718f0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -55,6 +55,32 @@ builds: - 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}}" + - "-s -w -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 + archives: - replacements: darwin: Darwin