fix(ci-component): honor NIX_CI_DISABLE_CACHE correctly

This commit is contained in:
technofab 2024-11-30 17:57:31 +01:00
parent 553b829af0
commit 1101989255
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ Also makes it possible to split CI parts in a separate module which can be impor
```yaml ```yaml
# .gitlab-ci.yml # .gitlab-ci.yml
include: include:
- component: gitlab.com/TECHNOFAB/nix-gitlab-ci/nix-gitlab-ci@1.1.0 - component: gitlab.com/TECHNOFAB/nix-gitlab-ci/nix-gitlab-ci@1.1.1
inputs: inputs:
# specify inputs here, for example: # specify inputs here, for example:
image_tag: latest-cachix image_tag: latest-cachix

View file

@ -20,7 +20,7 @@ stages:
- build - build
- trigger - trigger
variables: variables:
NIX_CI_DISABLE_CACHE: "$[[ inputs.disable_cache ]]" NIX_CI_DISABLE_CACHE: "$[[ inputs.disable_cache ]]${NIX_CI_DISABLE_CACHE:-}"
nix-ci:build: nix-ci:build:
stage: build stage: build
image: registry.gitlab.com/technofab/nix-gitlab-ci/nix-ci:$[[ inputs.image_tag ]] image: registry.gitlab.com/technofab/nix-gitlab-ci/nix-ci:$[[ inputs.image_tag ]]