Cache layers in CI?

This commit is contained in:
jpic 2021-04-24 12:33:13 +02:00
parent 5c941d38d6
commit 9e586de312

View File

@ -1,7 +1,7 @@
build: build:
cache: cache:
key: cache key: cache
paths: [.cache] paths: [.cache, .local/share/containers/]
image: yourlabs/buildah image: yourlabs/buildah
script: script:
- pip3 install -U --user -e .[cli] - pip3 install -U --user -e .[cli]
@ -11,7 +11,7 @@ build:
build-itself: build-itself:
cache: cache:
key: cache key: cache
paths: [.cache] paths: [.cache, .local/share/containers/]
image: yourlabs/shlax:$CI_COMMIT_SHORT_SHA image: yourlabs/shlax:$CI_COMMIT_SHORT_SHA
script: python3 ./shlaxfile.py build script: python3 ./shlaxfile.py build
stage: test stage: test