#!/usr/bin/env bash

source /etc/profile.d/chruby.sh
chruby 2.1.2

export BOSH_INSTALL_TARGET=/usr/local

cd /tmp/cpi-release

# Create a CPI dev release, which we use to install mkisofs packages.
bosh create release --with-tarball

cd packages/vsphere_cpi_mkisofs
tar zxf ../../dev_releases/bosh-vsphere-cpi/*.tgz
tar zxf packages/vsphere_cpi_mkisofs.tgz

# Share the packaging script used by the CPI release.
chmod +x ./packaging
./packaging

rm -rf /tmp/cpi-release

#!/usr/bin/env bash

source /etc/profile.d/chruby.sh
chruby 2.1.2

export BOSH_INSTALL_TARGET=/usr/local

cd /tmp/cpi-release

# Remove old/sync'd releases
rm -f dev_releases/bosh-vsphere-cpi/*.tgz

# Create a CPI dev release, which we use to install mkisofs packages.
bosh create release --with-tarball

cd packages/vsphere_cpi_mkisofs
tar zxf ../../dev_releases/bosh-vsphere-cpi/*.tgz
tar zxf packages/vsphere_cpi_mkisofs.tgz

# Share the packaging script used by the CPI release.
chmod +x ./packaging
./packaging

rm -rf /tmp/cpi-release

Remove previously built and sync'd dev releases.
Remove previously built and sync'd dev releases.

[#93835728](https://www.pivotaltracker.com/story/show/93835728)

Signed-off-by: Corey Innis <c6de6a297c7ba72017894924528d266f693d3f31@pivotal.io>
