From c86e15596b10ab1931e541d4616ff340e734c535 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 27 Aug 2020 22:31:28 +0200 Subject: [PATCH] Stop pulling unnecessary image during build --- .build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.build.yml b/.build.yml index 1b6cf04..7bec7e4 100644 --- a/.build.yml +++ b/.build.yml @@ -16,9 +16,8 @@ tasks: docker login -u crocmagnon --password-stdin < .docker-secret cd blog docker pull crocmagnon/blog:latest || true - docker pull crocmagnon/blog:tests || true docker build --pull --cache-from crocmagnon/blog:latest -t crocmagnon/blog:latest -f Dockerfile . - docker build --cache-from crocmagnon/blog:tests -t crocmagnon/blog:tests -f tests.Dockerfile . + docker build -t crocmagnon/blog:tests -f tests.Dockerfile . docker run --rm -t crocmagnon/blog:tests /app/docker/runtests.sh docker push crocmagnon/blog:latest docker push crocmagnon/blog:tests