Convert Gateway to Github Actions

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This commit is contained in:
Alistair Hey
2020-11-14 06:25:22 +00:00
committed by Alex Ellis
parent 4ced7cacd0
commit a5583074e0
11 changed files with 180 additions and 336 deletions

View File

@ -1,4 +1,5 @@
TAG?=latest
NS?=openfaas
.PHONY: build
build:
@ -6,24 +7,12 @@ build:
.PHONY: build-gateway
build-gateway:
(cd gateway; ./build.sh latest-dev)
(cd gateway; docker buildx build --platform linux/amd64 -t $NS/gateway:latest-dev .)
.PHONY: test-ci
test-ci:
./contrib/ci.sh
.PHONY: ci-armhf-build
ci-armhf-build:
(cd gateway; ./build.sh $(TAG) ; cd ../auth/basic-auth ; ./build.sh $(TAG))
.PHONY: ci-armhf-push
ci-armhf-push:
(cd gateway; ./push.sh $(TAG) ; cd ../auth/basic-auth ; ./push.sh $(TAG))
.PHONY: ci-arm64-build
ci-arm64-build:
(cd gateway; ./build.sh $(TAG) ; cd ../auth/basic-auth ; ./build.sh $(TAG))
.PHONY: ci-arm64-push
ci-arm64-push:
(cd gateway; ./push.sh $(TAG) ; cd ../auth/basic-auth ; ./push.sh $(TAG))
.PHONY: binaries
binaries:
echo TODO