Commit e8a0af5d authored by Oscar Leijendekker's avatar Oscar Leijendekker

Added cache to build process

parent a109724c
Pipeline #71041948 failed with stages
in 1 minute and 24 seconds
......@@ -6,6 +6,7 @@ variables:
DOCKER_DRIVER: overlay2
BUILD_ENV_IMAGE_TAG: registry.gitlab.com/drbearhands/haskell-tutorial/buildenv
BUILD_ENV_IMAGE_TAG_VERSIONED: ${BUILD_ENV_IMAGE_TAG}:${CI_COMMIT_SHA}
STACK_ROOT: /builds/<group>/<project>/.stack
build-environment:
stage: build-requirements
......@@ -24,5 +25,12 @@ build-environment:
build-backend:
stage: build
image: ${BUILD_ENV_IMAGE_TAG}:latest
cache:
paths:
- ${STACK_ROOT}
- .stack-work
script:
- stack build --system-ghc
- stack
--stack-root ${STACK_ROOT}
build
--system-ghc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment