From bf68aa670b293ead2edc4d7c8da923e6ca0d4569 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 12 May 2024 13:59:02 +0100 Subject: [PATCH] ci: make sure bash is installed --- .gitlab-ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7f5567..a6eda6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,14 @@ stages: - build +variables: + NIX: "nix --extra-experimental-features 'nix-command flakes'" + +.scripts_base: &scripts_base + - $NIX profile install nixpkgs#bash + .scripts_cache: &scripts_cache - - nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#attic-client + - $NIX profile install nixpkgs#attic-client - attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY - attic use skynet-cache @@ -10,6 +16,7 @@ handovers: tags: - nix before_script: + - *scripts_base - *scripts_cache stage: build @@ -23,7 +30,7 @@ handovers: script: # cache any dependencies - attic watch-store skynet-cache & - - nix --experimental-features 'nix-command flakes' run .#handovers + - $NIX run .#handovers # what it does afterwards artifacts: