Skip to content

Commit 0adf5f4

Browse files
authored
Merge pull request #120 from bacongobbler/update-dev-instructions
use pattern rules for checksums
2 parents d9d3b40 + 3007bd4 commit 0adf5f4

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For building Kubeval you'll need the following:
1212

1313
For releasing Kubeval you'll also need:
1414

15-
* [Goreleaser](https://opencollective.com)
15+
* [Goreleaser](https://goreleaser.com/)
1616

1717
The acceptance tests use [Bats](https://github.com/sstephenson/bats) and can be run
1818
directly or via Docker.

Makefile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,15 @@ clean:
7272
fmt:
7373
gofmt -w $(GOFMT_FILES)
7474

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

78-
checksum-windows-amd64:
79-
cd dist && sha256sum $(NAME)-windows-amd64.zip
80-
81-
checksum-darwin:
82-
cd dist && sha256sum $(NAME)-darwin-amd64.zip
83-
84-
checksum-linux:
85-
cd dist && sha256sum $(NAME)-linux-amd64.zip
86-
87-
checksums: checksum-darwin checksum-windows-386 checksum-windows-amd64 checksum-linux
78+
checksums: dist/$(NAME)-checksum-darwin-amd64 dist/$(NAME)-checksum-windows-386 dist/$(NAME)-checksum-windows-amd64 dist/$(NAME)-checksum-linux-amd64
8879

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

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

95-
.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
86+
.PHONY: release snapshot fmt clean cover acceptance lint docker test vet watch build check choco checksums

0 commit comments

Comments
 (0)