feat: caching support

This commit is contained in:
TECHNOFAB 2024-03-17 15:44:22 +00:00
parent 426d89702a
commit 3a05d7a128
5 changed files with 103 additions and 50 deletions

View file

@ -1,7 +1,7 @@
variables:
# cachix | attic
NIX_CI_CACHE_TYPE: cachix
# latest | latest-cachix | latest-attic etc.
NIX_CI_IMAGE_TAG: latest
stages:
- build
@ -9,10 +9,7 @@ stages:
nix-ci:build:
stage: build
image: nixos/nix:latest
before_script:
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- echo "accept-flake-config = true" >> /etc/nix/nix.conf
image: registry.gitlab.com/technofab/nix-gitlab-ci/nix-ci:${NIX_CI_IMAGE_TAG}
script:
# build the generated-gitlab-ci.yml
- nix build .#gitlab-ci-config