Is there a hakyll template for GitLab gitlab-ci.yml?
I found there are some on gitlab
I use the following file in the choice 2
image: haskell:latest
before_script:
- apt-get update && apt-get install xz-utils make
- export STACK_ROOT=`pwd`/.stack
- stack setup
- stack install --only-dependencies
- stack build
build:
cache:
paths:
- _cache
- .stack
script:
- stack exec site build
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
cache:
paths:
- _cache
- .stack
script:
- stack exec site build
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
My pipeline gets an error on
$ stack install --only-dependencies
Error parsing targets: The specified targets matched no packages.
Perhaps you need to run 'stack init'?
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
Does anyone know what should I do to make the pipeline work?