From cc953b8fce1329d55b845872f714c4d36cf2e1ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Sun, 29 Dec 2019 16:17:19 +0100
Subject: [PATCH] ENH: cache images locally

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9031b9d..e74e538 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,6 +89,9 @@ test:
       - echo $KNOWN_TAGS
         # test if the caosdb registry knows our current tag
       - echo $KNOWN_TAGS | grep "$CAOSDB_TAG"
+      - time docker load < /image-cache/caosdb-pyint-testenv.tar || true
+      - time docker load < /image-cache/mariadb.tar || true
+      - time docker load < /image-cache/caosdb.tar || true
       - docker login -u indiscale -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
       - docker pull $CI_REGISTRY_IMAGE:latest
       - cd .docker
@@ -123,6 +126,7 @@ build-testenv:
         --file .docker/Dockerfile
         -t $CI_REGISTRY_IMAGE:latest .
       - docker push $CI_REGISTRY_IMAGE:latest
+      - docker save $CI_REGISTRY_IMAGE:latest > /image-cache/caosdb-pyint-testenv.tar
 
 cert:
   tags: [docker]
-- 
GitLab