mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2026-02-02 19:35:08 +01:00
Compare commits
No commits in common. "0c6949f585a2c1ea2cf85fc01445496f7c75faae" and "f121b10dc9a7417906a886154e3065410a72462d" have entirely different histories.
0c6949f585
...
f121b10dc9
1 changed files with 4 additions and 12 deletions
|
|
@ -23,18 +23,10 @@ spec:
|
|||
type: string
|
||||
description: |
|
||||
Which version of the Nix CI image to use. Using a tag/version is recommended.
|
||||
stage_build:
|
||||
type: string
|
||||
description: The CI stage for building the dynamic pipeline.
|
||||
default: build
|
||||
stage_trigger:
|
||||
type: string
|
||||
description: The CI stage for triggering the dynamic pipeline.
|
||||
default: trigger
|
||||
---
|
||||
stages:
|
||||
- $[[ inputs.stage_build ]]
|
||||
- $[[ inputs.stage_trigger ]]
|
||||
- build
|
||||
- trigger
|
||||
variables:
|
||||
# These can be overriden, see https://docs.gitlab.com/ci/variables/#cicd-variable-precedence
|
||||
# which image should be used by default.
|
||||
|
|
@ -42,7 +34,7 @@ variables:
|
|||
# default cache stategy
|
||||
NIX_CI_CACHE_STRATEGY: $[[ inputs.cache_strategy ]]
|
||||
nix-ci:build:
|
||||
stage: $[[ inputs.stage_build ]]
|
||||
stage: build
|
||||
image: $NIX_CI_IMAGE
|
||||
cache:
|
||||
- key:
|
||||
|
|
@ -100,7 +92,7 @@ nix-ci:build:
|
|||
dotenv: trigger.env
|
||||
|
||||
nix-ci:trigger:
|
||||
stage: $[[ inputs.stage_trigger ]]
|
||||
stage: trigger
|
||||
needs:
|
||||
- nix-ci:build
|
||||
trigger:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue