mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
feat: caching support
This commit is contained in:
parent
426d89702a
commit
3a05d7a128
5 changed files with 103 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue