Skip to content

Commit

Permalink
Merge pull request #28 from rackn/drbundler
Browse files Browse the repository at this point in the history
Switch to drbundler.
  • Loading branch information
galthaus authored Dec 4, 2017
2 parents 8e4776a + cd7f794 commit 284ad53
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ case $(uname -s) in
exit 1;;
esac

if [ ! -e drp ] ; then
mkdir -p drp
cd drp
curl -fsSL https://raw.githubusercontent.com/digitalrebar/provision/master/tools/install.sh | bash -s -- --nocontent --isolated --drp-version=tip install
cd ..
fi


go get -u github.com/digitalrebar/provision/cmds/drbundler
PATH=$PATH:$GOPATH/bin

. tools/version.sh

Expand All @@ -27,10 +25,9 @@ version="$Prepart$MajorV.$MinorV.$PatchV$Extra-$GITHASH"
for i in terraform ; do
cd $i
echo -n "$version" > ._Version.meta
../drp/drpcli contents bundle $i.yaml Version="$version" --format=yaml
$shasum $i.yaml > $i.sha256
mv $i.* ..
cd ..
drbundler $i $i.yaml
$shasum $i.yaml > $i.sha256
done

tmpdir="$(mktemp -d /tmp/rs-bundle-XXXXXXXX)"
Expand Down

0 comments on commit 284ad53

Please sign in to comment.