summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 3bcfbe8d5b687ee3da8ef24a6b9aa6c9abe93d6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
image: haskell:9.0.2

stages:
  - build
  # - trigger

build-job:
  stage: build
  script:
    - stack build
    - mkdir dist
    - stack install --local-bin-path dist
    - cp config.json dist
  artifacts:
    paths:
      - dist
  variables:
    STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
  cache:
    key: '$CI_JOB_NAME-stack-cache'
    paths:
    - .stack-work/
    - .stack-root/


# trigger-mapservice-pipeline:
#   only:
#     refs:
#       - main
#   stage: trigger
#   script:
#     - curl -X POST -F token=$MAPSERVICE_TOKEN -F ref=main https://git.cccv.de/api/v4/projects/252/trigger/pipeline