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