aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-21 18:55:09 -0800
committerGravatar MarkKoz <[email protected]>2020-02-21 22:39:25 -0800
commit908383a1d054ed9aa8559c83f0806f82bab71a16 (patch)
tree1e28e847d032c52bc8b53867d14cf5537ced1633
parentCI: define default values for variables (diff)
CI: fix base image build condition
Build if the base changed or the venv changed and the base cannot be pulled.
-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: |