From d46055042fb15b7bc78360a6f3ce033dd488e26c Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 12 May 2024 13:32:39 +0100 Subject: [PATCH] wip: test pipeline --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a7f5567 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +stages: + - build + +.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 + +handovers: + tags: + - nix + before_script: + - *scripts_cache + stage: build + + # when it runs +# rules: +# - if: '$CI_PROJECT_NAMESPACE == "compsoc1/compsoc" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' +# changes: +# - Committee/_Handovers/**/* + + # what it runs + script: + # cache any dependencies + - attic watch-store skynet-cache & + - nix --experimental-features 'nix-command flakes' run .#handovers + + # what it does afterwards + artifacts: + name: "Handovers" + paths: + - Committee/_Handovers_pdf/