Skip to content
Permalink
Browse files

Add armhf build steps

This will help with CI for ARMHF

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  • Loading branch information...
alexellis committed Aug 23, 2018
1 parent 91b6c24 commit 64e7de4288113e4d193edfb988f9dc6e7c9d377f
Showing with 29 additions and 2 deletions.
  1. +6 −2 Makefile
  2. +23 −0 gateway/push.sh
@@ -7,5 +7,9 @@ build-gateway:
(cd gateway; ./build.sh latest-dev)
test-ci:
./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))
@@ -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

0 comments on commit 64e7de4

Please sign in to comment.
You can’t perform that action at this time.