summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2021-12-29 13:27:47 +0000
committerstuebinm2021-12-29 13:27:47 +0000
commitfb877d6dc1ad3891ff1190de4da5b4194ea04b56 (patch)
treef799ab6be5c9d368a42df47dd33ecdafe159d432
parent0529ef9ef410a9a9d1313f83a03539970baff35d (diff)
parent119eb9878ee9c55adaff762daa313d600cdd394f (diff)
Merge branch 'pipeline-caching' into 'main'
Pipeline caching See merge request hub/walint!9
-rw-r--r--.gitlab-ci.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3a19e81..235a48b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,9 +5,6 @@ stages:
- trigger
build-job:
- only:
- refs:
- - main
stage: build
script:
- stack build
@@ -17,10 +14,14 @@ build-job:
artifacts:
paths:
- dist
+ variables:
+ STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
cache:
- key: '$CI_JOB_NAME-$CI_COMMIT_REF_SLUG'
+ key: '$CI_JOB_NAME-stack-cache'
paths:
- - dist
+ - .stack-work/
+ - .stack-root/
+
trigger-mapservice-pipeline:
only: