mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
28 lines
430 B
Bash
Executable File
28 lines
430 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
export arch=$(uname -m)
|
|
|
|
export eTAG="latest-dev"
|
|
|
|
if [ "$arch" = "armv7l" ] ; then
|
|
eTAG="latest-armhf-dev"
|
|
elif [ "$arch" = "aarch64" ] ; then
|
|
eTAG="latest-arm64-dev"
|
|
fi
|
|
|
|
echo "$1"
|
|
if [ "$1" ] ; then
|
|
eTAG=$1
|
|
if [ "$arch" = "armv7l" ] ; then
|
|
eTAG="$1-armhf"
|
|
elif [ "$arch" = "aarch64" ] ; then
|
|
eTAG="$1-arm64"
|
|
fi
|
|
fi
|
|
|
|
echo Pushing openfaas/gateway:$eTAG
|
|
|
|
docker push openfaas/gateway:$eTAG
|
|
|