faas/gateway/push.sh
Alex Ellis (VMware) 273c8a40e7 Make push.sh runnable
Added chmod +x

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-23 22:09:53 +01:00

24 lines
309 B
Bash
Executable File

#!/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