Skip to content
Snippets Groups Projects
Commit 54bff17c authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ENH: use cached image building

parent e62c6bd2
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,6 @@ variables: ...@@ -23,10 +23,6 @@ variables:
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb-mysqlbackend-testenv:latest CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb-mysqlbackend-testenv:latest
# When using dind, it's wise to use the overlayfs driver for # When using dind, it's wise to use the overlayfs driver for
# improved performance. # improved performance.
DOCKER_DRIVER: overlay2
services:
- docker:19.03.0-dind
image: $CI_REGISTRY_IMAGE image: $CI_REGISTRY_IMAGE
stages: stages:
...@@ -47,12 +43,12 @@ trigger_build: ...@@ -47,12 +43,12 @@ trigger_build:
# Build a docker image in which tests for this repository can run # Build a docker image in which tests for this repository can run
build-testenv: build-testenv:
tags: [ docker ] tags: [ cached-dind ]
image: docker:19.03 image: docker:19.03
stage: setup stage: setup
script: script:
- cd .docker - cd .docker
- docker login -u testuser -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u indiscale -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# use here general latest or specific branch latest... # use here general latest or specific branch latest...
- docker pull $CI_REGISTRY_IMAGE || true - docker pull $CI_REGISTRY_IMAGE || true
- docker build - docker build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment