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

use pattern rules for checksums #120

Merged
merged 2 commits into from
Apr 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For building Kubeval you'll need the following:

For releasing Kubeval you'll also need:

* [Goreleaser](https://opencollective.com)
* [Goreleaser](https://goreleaser.com/)

The acceptance tests use [Bats](https://github.com/sstephenson/bats) and can be run
directly or via Docker.
Expand Down
17 changes: 4 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,15 @@ clean:
fmt:
gofmt -w $(GOFMT_FILES)

checksum-windows-386:
cd dist && sha256sum $(NAME)-windows-386.zip
dist/$(NAME)-checksum-%:
cd dist && sha256sum $@.zip

checksum-windows-amd64:
cd dist && sha256sum $(NAME)-windows-amd64.zip

checksum-darwin:
cd dist && sha256sum $(NAME)-darwin-amd64.zip

checksum-linux:
cd dist && sha256sum $(NAME)-linux-amd64.zip

checksums: checksum-darwin checksum-windows-386 checksum-windows-amd64 checksum-linux
checksums: dist/$(NAME)-checksum-darwin-amd64 dist/$(NAME)-checksum-windows-386 dist/$(NAME)-checksum-windows-amd64 dist/$(NAME)-checksum-linux-amd64

chocolatey/$(NAME)/$(NAME).$(TAG).nupkg: chocolatey/$(NAME)/$(NAME).nuspec
cd chocolatey/$(NAME) && choco pack

choco:
cd chocolatey/$(NAME) && choco push $(NAME).$(TAG).nupkg -s https://chocolatey.org/

.PHONY: release snapshot fmt clean cover acceptance lint docker test vet watch build check checksum-windows-386 checksum-windows-amd64 checksum-darwin checksum-linux choco checksum
.PHONY: release snapshot fmt clean cover acceptance lint docker test vet watch build check choco checksums