aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ci/build.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/ci/build.yml b/ci/build.yml
index 6e71a00..c5c4b43 100644
--- a/ci/build.yml
+++ b/ci/build.yml
@@ -22,7 +22,17 @@ steps:
-t pythondiscord/snekbox-base:latest \
.
displayName: 'Build Base Image'
- condition: and(succeeded(), eq(variables.BASE_PULL, 'False'))
+ condition: >
+ and(
+ succeeded(),
+ or(
+ eq(variables.BASE_CHANGED, 'True'),
+ and(
+ eq(variables.VENV_CHANGED, 'True'),
+ eq(variables.BASE_PULL, 'False')
+ )
+ )
+ )
# Build the venv image if it's had changes.
- script: |