diff --git a/deploy/deploy.sh b/deploy/deploy.sh index e06ef07..7415c22 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -1,10 +1,23 @@ #!/bin/bash + +RBAC_ARGUMENT="$1" +RBAC_DIR="$2" +if [ "$RBAC_ARGUMENT" == "rbac" ]; then + + if [ ! -d "$RBAC_DIR" ]; then + echo "The directory $RBAC_DIR does not exist." + echo "Please specify local directory(absolute path) to copy of https://github.com/RedHatInsights/insights-rbac repository." + exit + fi +fi + source ../.secrets/postgres.env # Export tags IMAGE=quay.io/ciam_authz/insights-rebac IMAGE_TAG=latest +IMAGE_RBAC=quay.io/ciam_authz/insights-rebac # Prepare bonfire env VENV_DIR=~/bonfire_venv mkdir -p $VENV_DIR @@ -43,7 +56,7 @@ cat > $file_location <> $file_location <