diff options
-rw-r--r-- | azure-pipelines.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 146cd95..bd916a4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -64,16 +64,12 @@ jobs: if [[ -n $PREV_COMMIT ]]; then echo "Using $PREV_COMMIT to compare diffs." - if [[ -z "$(docker images -q pythondiscord/snekbox-base:latest)" ]]; then - echo "The base image does not exist so it will be built." - elif [[ -z "$(git diff $PREV_COMMIT -- docker/base.Dockerfile)" ]]; then + if [[ -z "$(git diff $PREV_COMMIT -- docker/base.Dockerfile)" ]]; then echo "No changes detected in docker/base.Dockerfile. The base image will not be built." echo "##vso[task.setvariable variable=BASE_CHANGED]false" fi - if [[ -z "$(docker images -q pythondiscord/snekbox-venv:latest)" ]]; then - echo "The venv image does not exist so it will be built." - elif [[ -z "$(git diff $PREV_COMMIT -- docker/venv.Dockerfile Pipfile*)" ]]; then + if [[ -z "$(git diff $PREV_COMMIT -- docker/venv.Dockerfile Pipfile*)" ]]; then echo "No changes detected in docker/venv.Dockerfile or the Pipfiles. The venv image will not be built." echo "##vso[task.setvariable variable=VENV_CHANGED]false" fi |