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:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
.scripts_base: &scripts_base
|
pdf:
|
||||||
- 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
|
|
||||||
tags:
|
tags:
|
||||||
- nix
|
- nix
|
||||||
before_script:
|
before_script:
|
||||||
- *scripts_base
|
# basic stuff
|
||||||
- *scripts_cache
|
- 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
|
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
|
# what it runs
|
||||||
script:
|
script:
|
||||||
- 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
|
||||||
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
|
- 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
|
- nix --extra-experimental-features 'nix-command flakes' run .#budget
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "Budget"
|
name: "PDFs"
|
||||||
expose_as: 'Budget'
|
|
||||||
paths:
|
paths:
|
||||||
|
- Handovers_pdf/
|
||||||
|
- Minutes_pdf/
|
||||||
- Budget_pdf/
|
- Budget_pdf/
|
||||||
- errors.log
|
- errors.log
|
||||||
rules:
|
rules:
|
||||||
- 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/*
|
||||||
|
- Minutes/**/*
|
||||||
- Committee/**/Budget/*
|
- Committee/**/Budget/*
|
|
@ -1,3 +1,2 @@
|
||||||
## Guest speakers
|
## Guest speakers
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue