Skip to content

Commit

Permalink
Make hashes during CI
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Dec 4, 2020
1 parent 21dadc6 commit 8641a9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GitCommit := $(shell git rev-parse HEAD)
LDFLAGS := "-s -w -X main.Version=$(Version) -X main.GitCommit=$(GitCommit)"
export GO111MODULE=on
.PHONY: all
all: gofmt test dist
all: gofmt test dist hashgen

.PHONY: test
test:
Expand All @@ -13,6 +13,10 @@ test:
gofmt:
@test -z $(shell gofmt -l -s $(SOURCE_DIRS) ./ | tee /dev/stderr) || (echo "[WARN] Fix formatting issues with 'make fmt'" && exit 1)

.PHONY: hashgen
hashgen:
./ci/hashgen.sh

.PHONY: dist
dist:
mkdir -p bin/
Expand All @@ -26,3 +30,4 @@ dist:

echo "Compressing the compiled artifacts"
find bin -name "inletsctl*" -exec tar -cvzf {}.tgz {} \;

4 changes: 2 additions & 2 deletions ci/hashgen.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

for f in bin/*; do shasum -a 256 $f > $f.sha256; done
cd bin
for f in inletsctl*; do shasum -a 256 $f > $f.sha256; done

0 comments on commit 8641a9a

Please sign in to comment.