From 1101989255903a1f20781e007da3b313b9277173 Mon Sep 17 00:00:00 2001 From: technofab Date: Sat, 30 Nov 2024 17:57:31 +0100 Subject: [PATCH] fix(ci-component): honor NIX_CI_DISABLE_CACHE correctly --- README.md | 2 +- templates/nix-gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b24815..b9a8159 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Also makes it possible to split CI parts in a separate module which can be impor ```yaml # .gitlab-ci.yml 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: # specify inputs here, for example: image_tag: latest-cachix diff --git a/templates/nix-gitlab-ci.yml b/templates/nix-gitlab-ci.yml index 425d203..627d15c 100644 --- a/templates/nix-gitlab-ci.yml +++ b/templates/nix-gitlab-ci.yml @@ -20,7 +20,7 @@ stages: - build - trigger variables: - NIX_CI_DISABLE_CACHE: "$[[ inputs.disable_cache ]]" + NIX_CI_DISABLE_CACHE: "$[[ inputs.disable_cache ]]${NIX_CI_DISABLE_CACHE:-}" nix-ci:build: stage: build image: registry.gitlab.com/technofab/nix-gitlab-ci/nix-ci:$[[ inputs.image_tag ]]