Update .gitlab-ci.yml to handle FORCE_REBUILD_IMAGE with configurable options

This commit is contained in:
Agel committed 2026-04-03 13:57:29 +02:00
1 parent a31b20534a
commit 1ecc6e5826
1 file changed
+10
+10
View File
@@ -5,6 +5,9 @@ workflow:
- if: $FORCE_REBUILD_IMAGE == "true" - if: $FORCE_REBUILD_IMAGE == "true"
variables: variables:
CI_PIPELINE_TYPE: image-rebuild CI_PIPELINE_TYPE: image-rebuild
- if: $FORCE_REBUILD_IMAGE == "false"
variables:
CI_PIPELINE_TYPE: normal
- changes: - changes:
- docker/Dockerfile.build - docker/Dockerfile.build
- scripts/mingw-w64-toolchain.cmake - scripts/mingw-w64-toolchain.cmake
@@ -22,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: