From 7d5ca88efec2ea013564e0e96132f894d1495e02 Mon Sep 17 00:00:00 2001
From: Quentin Duchemin <quentinduchemin@tuta.io>
Date: Tue, 28 Sep 2021 18:21:29 +0200
Subject: [PATCH] [Testing] Pull before building images, otherwise seems to
 overwrite images

---
 docker_test.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docker_test.sh b/docker_test.sh
index 82ffd8af..3e18d6ff 100755
--- a/docker_test.sh
+++ b/docker_test.sh
@@ -83,12 +83,12 @@ echo -e "\n==== Remove old images ===="
 # For some reasons, sometime docker-compose does not pull the newer image. Force this!
 docker-compose config | grep "image:" | cut -d ':' -f 2- | xargs docker image rm || true
 
-echo -e "\n==== Build custom images ===="
-docker-compose build
-
 echo -e "\n==== Pull new versions of external images ===="
 docker-compose pull
 
+echo -e "\n==== Build custom images ===="
+docker-compose build
+
 # Except for registry URL, useful to push to production registry after build
 echo -e "\n==== Replace production URL with testing URL in all files ===="
 for f in $(grep -l -r ".picasoft.net" .); do
-- 
GitLab