ci: improved pipeline

This commit is contained in:
silver 2024-05-13 21:39:53 +01:00
parent d04a677387
commit e718be207a
Signed by untrusted user: silver
GPG key ID: 54E2C71918E93B74

View file

@ -9,7 +9,7 @@ stages:
- attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
- attic use skynet-cache
handovers:
.build_base: &pdf_base
tags:
- nix
before_script:
@ -21,15 +21,15 @@ handovers:
rules:
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
- Committee/_Handovers/**/*
- Committee/_Handovers/**/*
- Minutes/**/*
handovers:
<<: *pdf_base
# what it runs
script:
# cache any dependencies
- attic watch-store skynet-cache &
- nix --extra-experimental-features 'nix-command flakes' run .#handovers
# what it does afterwards
artifacts:
name: "Handovers"
paths:
@ -37,26 +37,10 @@ handovers:
minutes:
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:
- Minutes/**/*
# what it runs
<<: *pdf_base
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: