Compare commits

...

4 Commits

Author SHA1 Message Date
45f6aa7ebc CI:debug: try caching entire ci-exports/ folder 2021-01-27 15:39:14 +01:00
5aa4d84d66 CI:debug: OK... where's the cache file? 2021-01-27 15:27:10 +01:00
185ef120e4 CI:debug: Were is the cache dir? 2021-01-27 15:15:58 +01:00
1e52f1f9fd CI:debug: Read cache dir
Where is that damn tar?
2021-01-27 15:04:05 +01:00

View File

@@ -33,6 +33,7 @@ build_docker:
- docker:19.03.12-dind
script:
# Try to load latest branch image from local tar or from registry
- find ..
- docker load -i ci-exports/$CI_COMMIT_REF_SLUG.tar || docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:latest .
- mkdir -p ci-exports/
@@ -59,7 +60,7 @@ build_docker:
# The same key should be used across branches
key: "$CI_COMMIT_REF_SLUG"
paths:
- ci-exports/*.tar
- ci-exports/
only:
- master
- merge_requests