From ebc33ed21d00108c5e27f420738d4de17c86b709 Mon Sep 17 00:00:00 2001 From: Will Chandler Date: Fri, 21 Jul 2023 16:51:55 -0400 Subject: [PATCH] ci: Add variable to force pipeline to run For debugging CI it is often useful to be able to run a pipeline outside of the context of an MR. The GitLab project has a `FORCE_GITLAB_CI` variable that forces a pipeline to run even when the workflow requirements are not met. Add an equivalent `FORCE_GITALY_CI` variable to allow us to manually run pipelines as needed. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b97e7ed6a9..fcac416d10 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,6 +56,7 @@ workflow: - if: $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable$/' + - if: $FORCE_GITALY_CI .cache_deps: cache: &cache_deps_configuration @@ -142,6 +143,7 @@ workflow: - if: $CI_MERGE_REQUEST_IID - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable$/' + - if: $FORCE_GITALY_CI .rules_run_on_merge: &rules_run_on_merge # We only execute these rules in the main Gitaly repository. This is -- GitLab