#!/bin/bash # Directory for to build the release into mkdir -p release # Clone fresh copy of picc if [[ ! -d "picc" ]]; then git clone http://git.raptorpond.com/picc/picc.git else echo "picc already cloned." fi cd picc || exit git pull # Fetch rebar if [[ ! -f "rebar3" ]]; then curl -LO https://s3.amazonaws.com/rebar3/rebar3 fi cd .. # Build picc in a fresh alpine container and deposit the build into /release/ cat <