forked from Computer_Society/open-goverance
ci: improved pipeline
This commit is contained in:
parent
d04a677387
commit
e718be207a
1 changed files with 6 additions and 22 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue