uniworx.de/.gitlab-ci.yml
2023-05-11 16:22:25 +02:00

34 lines
495 B
YAML

image: nixpkgs/nix-flakes
workflow:
rules:
- if: $CI_COMMIT_BRANCH
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
cache:
paths:
- .stack-work
- .stack-root
- _cache
pages:
stage: deploy
script: &build-script
- nix develop -c gup public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main"
test:
stage: test
script: *build-script
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH != "main"