aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-05-28 15:04:57 -0700
committerGravatar MarkKoz <[email protected]>2019-05-28 15:04:57 -0700
commit002ecba8006f7614317a42301218f56689a572fc (patch)
tree61ae222e7c7a9409995bdd079cf510bf8742dee1
parentBuild venv image in PRs when Pipfiles change (diff)
Revert "Always build images if they do not exist"
This reverts commit 02e348ac249c1aba2d378ecda9af2a9a8ac1c894.
-rw-r--r--azure-pipelines.yml8
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