From 1ecc6e58265fd5685c99c32c8c94cc07f9ea267e Mon Sep 17 00:00:00 2001 From: Agel Date: Fri, 3 Apr 2026 13:57:29 +0200 Subject: [PATCH] Update `.gitlab-ci.yml` to handle `FORCE_REBUILD_IMAGE` with configurable options --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dfa120c..3a1eed6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,9 @@ workflow: - if: $FORCE_REBUILD_IMAGE == "true" variables: CI_PIPELINE_TYPE: image-rebuild + - if: $FORCE_REBUILD_IMAGE == "false" + variables: + CI_PIPELINE_TYPE: normal - changes: - docker/Dockerfile.build - scripts/mingw-w64-toolchain.cmake @@ -22,6 +25,13 @@ stages: variables: 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-docker: