Skip to content

Instantly share code, notes, and snippets.

@alexellis
Created August 24, 2018 07:45
Show Gist options
  • Save alexellis/95280199b4397c9c31e8d3edbaebb60f to your computer and use it in GitHub Desktop.
Save alexellis/95280199b4397c9c31e8d3edbaebb60f to your computer and use it in GitHub Desktop.
Build and publish ARMHF Docker images for OpenFaaS
#!/bin/bash
declare -a repos=("faas" "faas-swarm" "nats-queue-worker" "faas-netes")
HERE=`pwd`
rm -rf staging || :
mkdir -p staging
for i in "${repos[@]}"
do
cd $HERE
echo "$i"
git clone https://github.com/openfaas/$i ./staging/$i
cd ./staging/$i
pwd
export TAG=$(git describe --abbrev=0 --tags)
echo "Latest release: $TAG"
make ci-armhf-build ci-armhf-push
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment