aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-05-12 21:00:25 -0700
committerGravatar MarkKoz <[email protected]>2019-05-12 21:00:25 -0700
commit243340e85c0f1237893f085aeb96f01a3ec1e8c8 (patch)
treef2f3ddfc272fd1394c3ed54dcb342f669a65d450
parentFix missing fi for if statement (diff)
Use eq() function in conditions instead of relying on casts
-rw-r--r--azure-pipelines.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index e4b0965..ea6ad8b 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -80,22 +80,22 @@ jobs:
- script: docker build -t pythondiscord/snekbox-base:latest -f docker/base.Dockerfile .
displayName: 'Build Base Image'
- condition: and(succeeded(), variables.BASE_CHANGED)
+ condition: and(succeeded(), eq(variables['BASE_CHANGED'], 'true'))
- script: docker build -t pythondiscord/snekbox-venv:latest -f docker/venv.Dockerfile .
displayName: 'Build Virtual Environment Image'
- condition: and(succeeded(), or(variables.BASE_CHANGED, variables.VENV_CHANGED))
+ condition: and(succeeded(), or(eq(variables['BASE_CHANGED'], 'true'), eq(variables['VENV_CHANGED'], 'true')))
- script: docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile .
displayName: 'Build Final Image'
- script: echo "Base image push simulation"
displayName: 'Push Base Image to Dockerhub'
- condition: and(succeeded(), variables.BASE_CHANGED)
+ condition: and(succeeded(), eq(variables['BASE_CHANGED'], 'true'))
- script: echo "Venv image push simulation"
displayName: 'Push Virtual Environment Image to Dockerhub'
- condition: and(succeeded(), or(variables.BASE_CHANGED, variables.VENV_CHANGED))
+ condition: and(succeeded(), or(eq(variables['BASE_CHANGED'], 'true'), eq(variables['VENV_CHANGED'], 'true')))
- script: echo "Final image push simulation"
displayName: 'Push Final Image to Dockerhub'