#!/bin/bash
set -e

version=$(cat version/number)

pushd stacks-release

rm config/blobs.yml
bosh -n add blob ../stack-s3/cflinuxfs2-*.tar.gz rootfs
bosh -n upload blobs

git add config/blobs.yml
git commit -m "Updating blobs stack $version"

bosh -n create release --final --version $version --name stack --force
git add releases/stack/stack-$version.yml releases/stack/index.yml
git commit -m "Final release $version"

popd

#!/bin/bash
set -e

version=$(cat version/number)

pushd stacks-release

git checkout master

rm config/blobs.yml
bosh -n add blob ../stack-s3/cflinuxfs2-*.tar.gz rootfs
bosh -n upload blobs

git add config/blobs.yml
git commit -m "Updating blobs stack $version"

bosh -n create release --final --version $version --name stack --force
git add releases/stack/stack-$version.yml releases/stack/index.yml
git commit -m "Final release $version"

popd

Add master checkout to create-bosh-stacks
Add master checkout to create-bosh-stacks

Signed-off-by: Brandon Shroyer <d370be3f39cb88690ed16d1a7b77debc20949e86@pivotal.io>
