diff --git a/hack/dev-build-and-push.sh b/hack/dev-build-and-push.sh index 7dac3bfdd4d..4ae3e6c8d7c 100755 --- a/hack/dev-build-and-push.sh +++ b/hack/dev-build-and-push.sh @@ -16,11 +16,17 @@ # This script will build a dev release and push it to an existing cluster. -# First build a release +# First build the binaries +$(dirname $0)/build-go.sh +if [ "$?" != "0" ]; then + exit 1 +fi + +# Then build a release $(dirname $0)/../release/release.sh if [ "$?" != "0" ]; then - echo "Building a release failed!" - exit 1 + echo "Building a release failed!" + exit 1 fi # Now push this out to the cluster diff --git a/hack/dev-build-and-up.sh b/hack/dev-build-and-up.sh index 664d2db8137..62c32666797 100755 --- a/hack/dev-build-and-up.sh +++ b/hack/dev-build-and-up.sh @@ -17,11 +17,17 @@ # This script will build a dev release and bring up a new cluster with that # release. -# First build a release +# First build the binaries +$(dirname $0)/build-go.sh +if [ "$?" != "0" ]; then + exit 1 +fi + +# Then build a release $(dirname $0)/../release/release.sh if [ "$?" != "0" ]; then - echo "Building the release failed!" - exit 1 + echo "Building the release failed!" + exit 1 fi # Now bring a new cluster up with that release.