Skip to content

Commit

Permalink
Create sha256 checksums for all binaries
Browse files Browse the repository at this point in the history
Add a make target to create checksums for all subctl binaries created
under dist/ directory. Add this new target to `build-cross` target so
that the checksums are generated during the automated release process.

Epic: submariner-io/enhancements#182

Signed-off-by: Janki Chhatbar <[email protected]>
  • Loading branch information
Jaanki committed Jun 12, 2023
1 parent d5c7743 commit 165ec02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ clean:

build: $(BINARIES)

build-cross: $(CROSS_TARBALLS)
build-cross: $(CROSS_TARBALLS) create_checksums

licensecheck: build | bin/lichen
bin/lichen -c .lichen.yaml $(BINARIES)
Expand All @@ -98,6 +98,9 @@ dist/subctl-%.tar.gz: cmd/bin/subctl-%
mkdir -p dist
tar -czf $@ --transform "s/^cmd.bin/subctl-$(VERSION)/" $<

create_checksums: $(CROSS_TARBALLS)
cd dist && sha256sum * >> subctl-checksums.txt

# Versions may include hyphens so it's easier to use $(VERSION) than to extract them from the target

# Special case for Linux container builds
Expand Down

0 comments on commit 165ec02

Please sign in to comment.