Move circle commands into shell scripts

This commit is contained in:
Adam Harrison committed 2016-09-29 11:25:34 +01:00
1 parent 0c2774f367
commit b239694d34
9 files changed
+107 -39

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -e
sudo apt-get -q update && sudo apt-get -q install bc jq
bin/setup-circleci-secrets "$SECRET_PASSWORD"
mkdir -p $(dirname $SRCDIR) && cp -r $(pwd)/ $SRCDIR
cd $SRCDIR; git submodule update --init
if [ "$CIRCLE_NODE_INDEX" = "0" ] ; then
cd $SRCDIR/test; ./gce.sh make_template
fi
cd $SRCDIR/build
../tools/rebuild-image weaveworks/weavebuild . Dockerfile build.sh
touch $SRCDIR/.build.uptodate
sudo chown -R ubuntu /usr/local/go