ci: simplify pipeline
This commit is contained in:
parent
218e814dcd
commit
4e372cf485
2 changed files with 13 additions and 55 deletions
|
@ -1,75 +1,34 @@
|
|||
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
|
||||
pdf:
|
||||
tags:
|
||||
- nix
|
||||
before_script:
|
||||
- *scripts_base
|
||||
- *scripts_cache
|
||||
# basic stuff
|
||||
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bash
|
||||
|
||||
# setup the cache stuff
|
||||
- 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
|
||||
stage: build
|
||||
|
||||
# when it runs
|
||||
# rules:
|
||||
# - if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
# changes:
|
||||
# - Committee/**/Handovers/*
|
||||
# - Committee/**/Budget/*
|
||||
# - 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"
|
||||
expose_as: 'Handovers'
|
||||
paths:
|
||||
- Handovers_pdf/
|
||||
- errors.log
|
||||
rules:
|
||||
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
changes:
|
||||
- Committee/**/Handovers/*
|
||||
|
||||
minutes:
|
||||
<<: *pdf_base
|
||||
script:
|
||||
- attic watch-store skynet-cache &
|
||||
- nix --extra-experimental-features 'nix-command flakes' run .#minutes
|
||||
artifacts:
|
||||
name: "Minutes"
|
||||
expose_as: 'Minutes'
|
||||
paths:
|
||||
- Minutes_pdf/
|
||||
- errors.log
|
||||
rules:
|
||||
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
changes:
|
||||
- Minutes/**/*
|
||||
|
||||
budget:
|
||||
<<: *pdf_base
|
||||
script:
|
||||
- attic watch-store skynet-cache &
|
||||
- nix --extra-experimental-features 'nix-command flakes' run .#budget
|
||||
artifacts:
|
||||
name: "Budget"
|
||||
expose_as: 'Budget'
|
||||
name: "PDFs"
|
||||
paths:
|
||||
- Handovers_pdf/
|
||||
- Minutes_pdf/
|
||||
- Budget_pdf/
|
||||
- errors.log
|
||||
rules:
|
||||
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
changes:
|
||||
- Committee/**/Handovers/*
|
||||
- Minutes/**/*
|
||||
- Committee/**/Budget/*
|
|
@ -1,3 +1,2 @@
|
|||
## Guest speakers
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue