Gitlab NoInputs
This commit is contained in:
1 file changed
+9
-11
+9
-11
@@ -1,20 +1,11 @@
|
|||||||
workflow:
|
workflow:
|
||||||
auto_cancel:
|
auto_cancel:
|
||||||
on_new_commit: interruptible
|
on_new_commit: interruptible
|
||||||
inputs:
|
|
||||||
FORCE_REBUILD_IMAGE:
|
|
||||||
default: "auto"
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- "auto"
|
|
||||||
- "true"
|
|
||||||
- "false"
|
|
||||||
description: "Force (true) or skip (false) building the runner image, even if files changed"
|
|
||||||
rules:
|
rules:
|
||||||
- if: $[[ inputs.FORCE_REBUILD_IMAGE ]] == "true"
|
- if: $FORCE_REBUILD_IMAGE == "true"
|
||||||
variables:
|
variables:
|
||||||
CI_PIPELINE_TYPE: image-rebuild
|
CI_PIPELINE_TYPE: image-rebuild
|
||||||
- if: $[[ inputs.FORCE_REBUILD_IMAGE ]] == "false"
|
- if: $FORCE_REBUILD_IMAGE == "false"
|
||||||
variables:
|
variables:
|
||||||
CI_PIPELINE_TYPE: normal
|
CI_PIPELINE_TYPE: normal
|
||||||
- changes:
|
- changes:
|
||||||
@@ -34,6 +25,13 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_CLEAN_FLAGS: -fdx
|
GIT_CLEAN_FLAGS: -fdx
|
||||||
|
FORCE_REBUILD_IMAGE:
|
||||||
|
value: "auto"
|
||||||
|
options:
|
||||||
|
- "auto"
|
||||||
|
- "true"
|
||||||
|
- "false"
|
||||||
|
description: "Force (true) or skip (false) building the runner image, even if files changed"
|
||||||
|
|
||||||
# ── Build the runner image and push to registry ────────────────────────────────
|
# ── Build the runner image and push to registry ────────────────────────────────
|
||||||
build-docker:
|
build-docker:
|
||||||
|
|||||||
Reference in new issue
Block a user