aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-05-12 18:45:18 -0700
committerGravatar MarkKoz <[email protected]>2019-05-12 18:45:18 -0700
commit39846214aafd18f0d74c238c8626988f0228e53d (patch)
treefd7337d68d3c8439b4420eb59ad1557e56a45f1d
parentFix variable definitions (diff)
Use true/false strings for settings booleans in bash
-rw-r--r--azure-pipelines.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 123ac24..4beb59d 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -34,8 +34,8 @@ jobs:
dependsOn: test
variables:
- BASE_CHANGED: 1
- VENV_CHANGED: 1
+ BASE_CHANGED: true
+ VENV_CHANGED: true
steps:
- task: Docker@1
@@ -62,12 +62,12 @@ jobs:
if [[ -n $PREV_COMMIT ]]; then
if [[ -z "$(git diff $PREV_COMMIT -- docker/base.Dockerfile)" ]]; then
echo "No changes detected in docker/base.Dockerfile. The base image will not be built."
- echo "##vso[task.setvariable variable=BASE_CHANGED]0"
+ echo "##vso[task.setvariable variable=BASE_CHANGED]false"
fi
if [[ -z "$(git diff $PREV_COMMIT -- Pipfile* docker/venv.Dockerfile)" ]]; then
echo "No changes detected in Pipfile, Pipfile.lock, or docker/venv.Dockerfile. The venv image will not be built."
- echo "##vso[task.setvariable variable=VENV_CHANGED]0"
+ echo "##vso[task.setvariable variable=VENV_CHANGED]false"
fi
else
echo "No previous commit was retrieved. Either the previous build is too old and was deleted or the branch was empty before this build. All images will be built."