diff --git a/README.md b/README.md index 52c045e..4ab8d08 100644 --- a/README.md +++ b/README.md @@ -127,10 +127,9 @@ simulate an install ------------------- ### skip-deploy * **BitOps Property:** `skip-deploy` -* **Environment Variable:** `SKIP_DEPLOY` +* **Environment Variable:** `HELM_SKIP_DEPLOY` * **default:** `""` - -will skip helm execution +* **Description:** If set to true, regardless of the stack-action, deployment actions will be skipped. ------------------- ### release-name @@ -209,7 +208,7 @@ AWS s3 bucket name Although not captured in `bitops.config.yml`, the following environment variables can be set to further customize behaviour ------------------- -### SKIP_DEPLOY_HELM +### HELM_SKIP_DEPLOY Will skill all helm executions. This superseeds all other configuration ------------------- diff --git a/deploy.sh b/deploy.sh index 51649c8..cc8a7ff 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,11 +1,6 @@ #!/usr/bin/env bash set -e -if [ -n "$SKIP_DEPLOY_HELM" ]; then - echo "SKIP_DEPLOY_HELM is set. Skipping." - exit 0 -fi - export PLUGINS_ROOT_DIR="${BITOPS_PLUGINS_DIR%/*}" export HELM_ROOT_SCRIPTS="$BITOPS_PLUGIN_DIR" export HELM_ROOT_OPERATIONS="$BITOPS_OPSREPO_ENVIRONMENT_DIR" diff --git a/scripts/helm_handle_chart.sh b/scripts/helm_handle_chart.sh index c10fb5a..ebd80a9 100644 --- a/scripts/helm_handle_chart.sh +++ b/scripts/helm_handle_chart.sh @@ -16,7 +16,7 @@ echo "BITOPS_CONFIG_COMMAND: $BITOPS_CONFIG_COMMAND" source "$BITOPS_SCHEMA_ENV_FILE" # Check for helm skip deploy condition -if [ "$HELM_SKIP_DEPLOY" == "True" ]; then +if [ "$HELM_SKIP_DEPLOY" == "true" ]; then echo "helm.options.skip-deploy (HELM_SKIP_DEPLOY) set. Skipping deployment for $ENVIRONMENT/helm/$HELM_CHART" exit 0 fi