open-goverance/.gitlab-ci.yml

34 lines
1 KiB
YAML
Raw Normal View History

2024-05-12 12:32:39 +00:00
stages:
- build
2024-05-20 02:05:24 +00:00
pdf:
2024-05-12 12:32:39 +00:00
tags:
- nix
before_script:
2024-05-20 02:05:24 +00:00
# basic stuff
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bash
2024-05-12 12:32:39 +00:00
2024-05-20 02:05:24 +00:00
# setup the cache stuff
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#attic-client
- attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
- attic use skynet-cache
stage: build
2024-05-12 12:32:39 +00:00
# what it runs
script:
- attic watch-store skynet-cache &
- nix --extra-experimental-features 'nix-command flakes' run .#handovers
- nix --extra-experimental-features 'nix-command flakes' run .#minutes
- nix --extra-experimental-features 'nix-command flakes' run .#budget
artifacts:
2024-05-20 02:05:24 +00:00
name: "PDFs"
paths:
2024-05-20 02:41:38 +00:00
- pdf_Handovers/
- pdf_Minutes/
- pdf_Budget/
- errors.log
rules:
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
2024-05-20 02:05:24 +00:00
- Committee/**/Handovers/*
- Minutes/**/*
- Committee/**/Budget/*