From 908383a1d054ed9aa8559c83f0806f82bab71a16 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Fri, 21 Feb 2020 18:55:09 -0800 Subject: CI: fix base image build condition Build if the base changed or the venv changed and the base cannot be pulled. --- ci/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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: | -- cgit v1.2.3