From 119eb9878ee9c55adaff762daa313d600cdd394f Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 29 Dec 2021 13:27:47 +0000 Subject: Pipeline caching --- .gitlab-ci.yml | 11 ++++++----- 1 file 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: -- cgit v1.2.3