Skip to content
Snippets Groups Projects
Commit 7d7561f5 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Improve dind caching

parent 20681411
No related branches found
No related tags found
1 merge request!813Add Address and UndefinedBehaviour Sanitizers to our CI pipeline
......@@ -19,7 +19,8 @@ stages:
- docker info
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build -t "$IMAGE_TAG" "scripts/docker/$IMAGE_NAME"
- docker pull "$IMAGE_TAG" || true
- docker build --cache-from "$IMAGE_TAG" -t "$IMAGE_TAG" "scripts/docker/$IMAGE_NAME"
- docker push "$IMAGE_TAG"
tags:
- dind
......@@ -45,7 +46,7 @@ docker:knot-dns:ubuntu:
docker:knot-dns:centos:
<<: *image
variables:
IMAGE_NAME: centos:latestf
IMAGE_NAME: centos:latest
IMAGE_TAG: $CI_REGISTRY_IMAGE/$IMAGE_NAME
docker:knot-dns:fedora:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment