Skip to content

Instantly share code, notes, and snippets.

@alexellis
Created August 24, 2018 07:45
Show Gist options
  • Select an option

  • Save alexellis/95280199b4397c9c31e8d3edbaebb60f to your computer and use it in GitHub Desktop.

Select an option

Save alexellis/95280199b4397c9c31e8d3edbaebb60f to your computer and use it in GitHub Desktop.

Revisions

  1. alexellis created this gist Aug 24, 2018.
    23 changes: 23 additions & 0 deletions publish-armhf.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    #!/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