diff --git a/.gitlab/ci/deploy.yml b/.gitlab/ci/deploy.yml index 7347b2ff7a..21d968b3df 100644 --- a/.gitlab/ci/deploy.yml +++ b/.gitlab/ci/deploy.yml @@ -32,8 +32,9 @@ push_to_github: extends: - .deploy_job_template - .before_script_minimal - - .rules:protected-no_label - dependencies: [] + - .rules:push_to_github + needs: + - check_submodule_sync script: - add_github_ssh_keys - git remote remove github &>/dev/null || true diff --git a/.gitlab/ci/docs.yml b/.gitlab/ci/docs.yml index 8f8a137789..ba79d1233f 100644 --- a/.gitlab/ci/docs.yml +++ b/.gitlab/ci/docs.yml @@ -25,6 +25,9 @@ .if-protected-no_label: &if-protected-no_label if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) && $BOT_TRIGGER_WITH_LABEL == null' +.if-qa-test-tag: &if-qa-test-tag + if: '$CI_COMMIT_TAG =~ /^qa-test/' + .if-label-build_docs: &if-label-build_docs if: '$BOT_LABEL_BUILD_DOCS || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*build_docs(?:,[^,\n\r]+)*$/i' @@ -32,10 +35,12 @@ if: '$BOT_LABEL_DOCS_FULL || $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*docs_full(?:,[^,\n\r]+)*$/i' .if-dev-push: &if-dev-push - if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")' + if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")' .doc-rules:build:docs-full: rules: + - <<: *if-qa-test-tag + when: never - <<: *if-protected - <<: *if-label-build_docs - <<: *if-label-docs_full @@ -44,6 +49,8 @@ .doc-rules:build:docs-partial: rules: + - <<: *if-qa-test-tag + when: never - <<: *if-dev-push changes: *patterns-docs-full when: never diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index 80325d39d0..4be36e0457 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -330,13 +330,16 @@ if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/' .if-protected: &if-protected - if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/)' + if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) || $CI_COMMIT_TAG =~ /^qa-test/' .if-protected-no_label: &if-protected-no_label if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) && $BOT_TRIGGER_WITH_LABEL == null' +.if-qa-test-tag: &if-qa-test-tag + if: '$CI_COMMIT_TAG =~ /^qa-test/' + .if-dev-push: &if-dev-push - if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")' + if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")' .if-merge_request: &if-merge_request if: '$CI_PIPELINE_SOURCE == "merge_request_event"' @@ -372,8 +375,10 @@ rules: - <<: *if-protected -.rules:protected-no_label: +.rules:push_to_github: rules: + - <<: *if-qa-test-tag + when: never - <<: *if-protected-no_label .rules:mr: