From afbf560d2749b14718a2f181a14e94096d024ce3 Mon Sep 17 00:00:00 2001 From: KingKDot Date: Sun, 23 Aug 2026 17:48:29 -0500 Subject: [PATCH] Expose container release as pipeline input --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1b7aaf..a7b6c7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,12 @@ +spec: + inputs: + release_version: + type: string + default: "" + regex: '^$|^[0-9]+\.[0-9]+\.[0-9]+$' + description: "Server image version to publish (strict SemVer, for example 3.1.0). Leave blank for a test-only pipeline." +--- + stages: - test - package @@ -11,9 +20,7 @@ workflow: - if: "$CI_COMMIT_BRANCH || $CI_COMMIT_TAG" variables: - RELEASE_VERSION: - value: "" - description: "Server image version to publish (strict SemVer, for example 3.1.0). Leave blank for a test-only pipeline." + RELEASE_VERSION: "$[[ inputs.release_version ]]" include: - local: /.gitlab/ci/tests.yml