2024-05-12 12:32:39 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2024-05-12 12:59:02 +00:00
|
|
|
.scripts_base: &scripts_base
|
2024-05-12 13:03:22 +00:00
|
|
|
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bash
|
2024-05-12 12:59:02 +00:00
|
|
|
|
2024-05-12 12:32:39 +00:00
|
|
|
.scripts_cache: &scripts_cache
|
2024-05-12 13:03:22 +00:00
|
|
|
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#attic-client
|
2024-05-12 12:32:39 +00:00
|
|
|
- attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
|
|
|
|
- attic use skynet-cache
|
|
|
|
|
|
|
|
handovers:
|
|
|
|
tags:
|
|
|
|
- nix
|
|
|
|
before_script:
|
2024-05-12 12:59:02 +00:00
|
|
|
- *scripts_base
|
2024-05-12 12:32:39 +00:00
|
|
|
- *scripts_cache
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
# when it runs
|
2024-05-12 14:58:08 +00:00
|
|
|
rules:
|
2024-05-12 15:03:01 +00:00
|
|
|
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
|
|
changes:
|
2024-05-12 14:58:08 +00:00
|
|
|
- Committee/_Handovers/**/*
|
2024-05-12 12:32:39 +00:00
|
|
|
|
|
|
|
# what it runs
|
|
|
|
script:
|
|
|
|
# cache any dependencies
|
|
|
|
- attic watch-store skynet-cache &
|
2024-05-12 13:03:22 +00:00
|
|
|
- nix --extra-experimental-features 'nix-command flakes' run .#handovers
|
2024-05-12 12:32:39 +00:00
|
|
|
|
|
|
|
# what it does afterwards
|
|
|
|
artifacts:
|
|
|
|
name: "Handovers"
|
|
|
|
paths:
|
|
|
|
- Committee/_Handovers_pdf/
|
2024-05-12 14:53:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
minutes:
|
|
|
|
tags:
|
|
|
|
- nix
|
|
|
|
before_script:
|
|
|
|
- *scripts_base
|
|
|
|
- *scripts_cache
|
|
|
|
stage: build
|
|
|
|
|
|
|
|
# when it runs
|
2024-05-12 14:58:08 +00:00
|
|
|
rules:
|
2024-05-12 15:03:01 +00:00
|
|
|
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
|
|
changes:
|
2024-05-12 14:58:08 +00:00
|
|
|
- Minutes/**/*
|
2024-05-12 14:53:06 +00:00
|
|
|
|
|
|
|
# what it runs
|
|
|
|
script:
|
|
|
|
# cache any dependencies
|
|
|
|
- attic watch-store skynet-cache &
|
|
|
|
- nix --extra-experimental-features 'nix-command flakes' run .#minutes
|
|
|
|
|
|
|
|
# what it does afterwards
|
|
|
|
artifacts:
|
|
|
|
name: "Minutes"
|
|
|
|
paths:
|
|
|
|
- Minutes_pdf/
|
2024-05-12 15:03:01 +00:00
|
|
|
- Minutes/errors.log
|