Cache .task/ directory to lazy run tasks across stages

This commit is contained in:
Peter 2021-01-16 17:43:54 +01:00
parent 2f0f3edfdf
commit 41aa132e80
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9

View file

@ -1,5 +1,11 @@
image: registry.gitlab.com/inetmock/ci-image
cache: &global_cache
key: ${CI_COMMIT_REF_SLUG}
paths:
- .task/
policy: pull-push
stages:
- test
- build
@ -7,6 +13,8 @@ stages:
test:
stage: test
cache:
<<: *global_cache
script:
- task cli-cover-report
artifacts:
@ -22,6 +30,8 @@ lint:
snapshot-release:
stage: build
cache:
<<: *global_cache
services:
- docker:dind
before_script:
@ -33,6 +43,8 @@ snapshot-release:
release:
stage: release
cache:
<<: *global_cache
services:
- docker:dind
only: