Create publish-armhf.sh

This commit is contained in:
Alex Ellis 2018-09-20 13:50:08 +01:00 committed by GitHub
parent 3b83c9e682
commit 5ac05f7959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
contrib/publish-armhf.sh Normal file
View File

@ -0,0 +1,27 @@
#!/bin/bash
declare -a repos=("openfaas-incubator/faas-idler" "openfaas/faas" "openfaas/faas-swarm" "openfaas/nats-queue-worker" "openfaas/faas-netes" "openfaas/faas-cli")
HERE=`pwd`
#if [ ! -z "$CACHED" ]; then
rm -rf staging || :
mkdir -p staging/openfaas
mkdir -p staging/openfaas-incubator
#fi
for i in "${repos[@]}"
do
cd $HERE
echo "$i"
git clone https://github.com/$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