aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml5
-rw-r--r--ci/build.yml4
2 files changed, 7 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9b0c648..a1a7a4f 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -7,6 +7,11 @@ jobs:
pool:
vmImage: 'ubuntu-18.04'
+ variables:
+ BASE_CHANGED: 'True'
+ VENV_CHANGED: 'True'
+ BASE_PULL: 'False'
+
steps:
- template: ci/build.yml
- template: ci/setup.yml
diff --git a/ci/build.yml b/ci/build.yml
index a076431..6e71a00 100644
--- a/ci/build.yml
+++ b/ci/build.yml
@@ -22,7 +22,7 @@ steps:
-t pythondiscord/snekbox-base:latest \
.
displayName: 'Build Base Image'
- condition: and(succeeded(), ne(variables.BASE_PULL, 'True'))
+ condition: and(succeeded(), eq(variables.BASE_PULL, 'False'))
# Build the venv image if it's had changes.
- script: |
@@ -31,4 +31,4 @@ steps:
-t pythondiscord/snekbox-venv:latest \
.
displayName: 'Build Virtual Environment Image'
- condition: and(succeeded(), ne(variables.VENV_CHANGED, 'False'))
+ condition: and(succeeded(), eq(variables.VENV_CHANGED, 'True'))