ci: simplify pipeline

This commit is contained in:
silver 2024-05-20 03:05:24 +01:00
parent 218e814dcd
commit 4e372cf485
Signed by untrusted user: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 13 additions and 55 deletions

View file

@ -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/*

View file

@ -1,3 +1,2 @@
## Guest speakers