Skip to content
Snippets Groups Projects

Pipeline caching

1 file
+ 6
5
Compare changes
  • Side-by-side
  • Inline
+ 6
5
@@ -5,9 +5,6 @@ stages:
@@ -5,9 +5,6 @@ stages:
- trigger
- trigger
build-job:
build-job:
only:
refs:
- main
stage: build
stage: build
script:
script:
- stack build
- stack build
@@ -17,10 +14,14 @@ build-job:
@@ -17,10 +14,14 @@ build-job:
artifacts:
artifacts:
paths:
paths:
- dist
- dist
 
variables:
 
STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
cache:
cache:
key: '$CI_JOB_NAME-$CI_COMMIT_REF_SLUG'
key: '$CI_JOB_NAME-stack-cache'
paths:
paths:
- dist
- .stack-work/
 
- .stack-root/
 
trigger-mapservice-pipeline:
trigger-mapservice-pipeline:
only:
only:
Loading