mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Add armhf build steps
This will help with CI for ARMHF Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
parent
91b6c24494
commit
64e7de4288
8
Makefile
8
Makefile
@ -7,5 +7,9 @@ build-gateway:
|
|||||||
(cd gateway; ./build.sh latest-dev)
|
(cd gateway; ./build.sh latest-dev)
|
||||||
test-ci:
|
test-ci:
|
||||||
./contrib/ci.sh
|
./contrib/ci.sh
|
||||||
ci-armhf:
|
|
||||||
(cd gateway; ./build.sh $(TAG)-armhf)
|
ci-armhf-build:
|
||||||
|
(cd gateway; ./build.sh $(TAG))
|
||||||
|
|
||||||
|
ci-armhf-push:
|
||||||
|
(cd gateway; ./push.sh $(TAG))
|
||||||
|
23
gateway/push.sh
Normal file
23
gateway/push.sh
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export arch=$(uname -m)
|
||||||
|
|
||||||
|
export eTAG="latest-dev"
|
||||||
|
|
||||||
|
if [ "$arch" = "armv7l" ] ; then
|
||||||
|
eTAG="latest-armhf-dev"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$1"
|
||||||
|
if [ "$1" ] ; then
|
||||||
|
eTAG=$1
|
||||||
|
if [ "$arch" = "armv7l" ] ; then
|
||||||
|
eTAG="$1-armhf"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Pushing openfaas/gateway:$eTAG
|
||||||
|
|
||||||
|
docker push openfaas/gateway:$eTAG
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user