Cache .task/ directory to lazy run tasks across stages
This commit is contained in:
parent
2f0f3edfdf
commit
41aa132e80
1 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
image: registry.gitlab.com/inetmock/ci-image
|
image: registry.gitlab.com/inetmock/ci-image
|
||||||
|
|
||||||
|
cache: &global_cache
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
paths:
|
||||||
|
- .task/
|
||||||
|
policy: pull-push
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
@ -7,6 +13,8 @@ stages:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
cache:
|
||||||
|
<<: *global_cache
|
||||||
script:
|
script:
|
||||||
- task cli-cover-report
|
- task cli-cover-report
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -22,6 +30,8 @@ lint:
|
||||||
|
|
||||||
snapshot-release:
|
snapshot-release:
|
||||||
stage: build
|
stage: build
|
||||||
|
cache:
|
||||||
|
<<: *global_cache
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -33,6 +43,8 @@ snapshot-release:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
|
cache:
|
||||||
|
<<: *global_cache
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Reference in a new issue