Skip to content

Commit 011ab6b

Browse files
Merge pull request #13 from bitops-plugins/skip-deploy-doc
Adding skip-deploy bitops configuration option
2 parents b77f296 + 6d2488c commit 011ab6b

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,9 @@ simulate an install
127127
-------------------
128128
### skip-deploy
129129
* **BitOps Property:** `skip-deploy`
130-
* **Environment Variable:** `SKIP_DEPLOY`
130+
* **Environment Variable:** `HELM_SKIP_DEPLOY`
131131
* **default:** `""`
132-
133-
will skip helm execution
132+
* **Description:** If set to true, regardless of the stack-action, deployment actions will be skipped.
134133

135134
-------------------
136135
### release-name
@@ -209,7 +208,7 @@ AWS s3 bucket name
209208
Although not captured in `bitops.config.yml`, the following environment variables can be set to further customize behaviour
210209

211210
-------------------
212-
### SKIP_DEPLOY_HELM
211+
### HELM_SKIP_DEPLOY
213212
Will skill all helm executions. This superseeds all other configuration
214213

215214
-------------------

deploy.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
if [ -n "$SKIP_DEPLOY_HELM" ]; then
5-
echo "SKIP_DEPLOY_HELM is set. Skipping."
6-
exit 0
7-
fi
8-
94
export PLUGINS_ROOT_DIR="${BITOPS_PLUGINS_DIR%/*}"
105
export HELM_ROOT_SCRIPTS="$BITOPS_PLUGIN_DIR"
116
export HELM_ROOT_OPERATIONS="$BITOPS_OPSREPO_ENVIRONMENT_DIR"

scripts/helm_handle_chart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "BITOPS_CONFIG_COMMAND: $BITOPS_CONFIG_COMMAND"
1616
source "$BITOPS_SCHEMA_ENV_FILE"
1717

1818
# Check for helm skip deploy condition
19-
if [ "$HELM_SKIP_DEPLOY" == "True" ]; then
19+
if [ "$HELM_SKIP_DEPLOY" == "true" ]; then
2020
echo "helm.options.skip-deploy (HELM_SKIP_DEPLOY) set. Skipping deployment for $ENVIRONMENT/helm/$HELM_CHART"
2121
exit 0
2222
fi

0 commit comments

Comments
 (0)