Add env var to skip docker image build for bin/up
#!/bin/sh
+set -e
+
+if [ -z "$SKIP_IMAGE" ]; then
+ set +e
+
if type -a minikube >/dev/null 2>/dev/null; then
dockerenv=`minikube docker-env`
if [ $? -ne 0 ]; then
@@ -9,15 +14,16 @@ if type -a minikube >/dev/null 2>/dev/null; then
eval ${dockerenv}
fi
-GIT_ROOT="${GIT_ROOT:-$(git rev-parse --show-toplevel)}"
-. "${GIT_ROOT}/bin/include/versioning"
-. "${GIT_ROOT}/.envrc"
+ . bin/include/versioning
+ . .envrc
export DOCKER_IMAGE_TAG=${VERSION_TAG}
set -e
bin/build-image
+fi
+
bin/build
bin/apply-crds
echo "watching namespace ${CFO_NAMESPACE}"
