mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
fix(ci-component): honor NIX_CI_DISABLE_CACHE correctly
This commit is contained in:
parent
553b829af0
commit
1101989255
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 ]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue