open-goverance/.gitlab-ci.yml

48 lines
1.1 KiB
YAML

stages:
- build
.scripts_base: &scripts_base
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bash
.scripts_cache: &scripts_cache
- 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
.build_base: &pdf_base
tags:
- nix
before_script:
- *scripts_base
- *scripts_cache
stage: build
# when it runs
rules:
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
- Committee/_Handovers/**/*
- Minutes/**/*
handovers:
<<: *pdf_base
# what it runs
script:
- attic watch-store skynet-cache &
- nix --extra-experimental-features 'nix-command flakes' run .#handovers
artifacts:
name: "Handovers"
paths:
- Committee/_Handovers_pdf/
minutes:
<<: *pdf_base
script:
- attic watch-store skynet-cache &
- nix --extra-experimental-features 'nix-command flakes' run .#minutes
artifacts:
name: "Minutes"
paths:
- Minutes_pdf/
- Minutes/errors.log