chore: update gitlab-ci.yml and only load job deps if name was passed to setup_nix_ci

This commit is contained in:
technofab 2024-03-17 18:16:34 +01:00
parent 12e55ad0b7
commit 93baeca411
2 changed files with 12 additions and 7 deletions

View file

@ -10,14 +10,15 @@ stages:
nix-ci:build:
stage: build
image: registry.gitlab.com/technofab/nix-gitlab-ci/nix-ci:${NIX_CI_IMAGE_TAG}
before_script:
- source setup_nix_ci
script:
# build the generated-gitlab-ci.yml
- nix build .#gitlab-ci-config
- install result generated-gitlab-ci.yml
after_script:
# upload to binary cache
- echo $(nix-store --query --references result)
# TODO: upload deps using cachix or attic
- finalize_nix_ci
artifacts:
paths:
- generated-gitlab-ci.yml