Skip to content

Commit

Permalink
Switch to drbundler.
Browse files Browse the repository at this point in the history
  • Loading branch information
galthaus committed Dec 4, 2017
1 parent 8e4776a commit cd7f794
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 cd7f794

Please sign in to comment.