Move hashgen into Makefile

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd) 2020-10-22 22:31:53 +01:00
parent 908bbfda9f
commit 2248a8a071
3 changed files with 5 additions and 4 deletions

View File

@ -16,7 +16,7 @@ script:
- make test-e2e
before_deploy:
- ./hack/hashgen.sh
- make hashgen
deploy:
provider: releases

View File

@ -23,6 +23,10 @@ dist:
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -mod=vendor -ldflags $(LDFLAGS) -a -installsuffix cgo -o bin/faasd-armhf
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -mod=vendor -ldflags $(LDFLAGS) -a -installsuffix cgo -o bin/faasd-arm64
.PHONY: hashgen
hashgen:
for f in bin/faasd*; do shasum -a 256 $$f > $$f.sha256; done
.PHONY: prepare-test
prepare-test:
curl -sLSf https://github.com/containerd/containerd/releases/download/v$(CONTAINERD_VER)/containerd-$(CONTAINERD_VER).linux-amd64.tar.gz > /tmp/containerd.tar.gz && sudo tar -xvf /tmp/containerd.tar.gz -C /usr/local/bin/ --strip-components=1

View File

@ -1,3 +0,0 @@
#!/bin/sh
for f in bin/faasd*; do shasum -a 256 $f > $f.sha256; done