From cd7f794dd2045cf0be82b3834d0c3395761b8bdb Mon Sep 17 00:00:00 2001 From: Greg Althaus Date: Mon, 4 Dec 2017 15:56:38 -0600 Subject: [PATCH] Switch to drbundler. --- tools/package.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tools/package.sh b/tools/package.sh index f290320..0a73ff2 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -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 @@ -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)"