diff --git a/src/automation/.gitlab-ci.yml b/src/automation/.gitlab-ci.yml index 86e02f9c50619b2d2d17491781f08643f98976b4..ff415b870fcd3b5cec82c90528c866a6ded9a228 100644 --- a/src/automation/.gitlab-ci.yml +++ b/src/automation/.gitlab-ci.yml @@ -73,6 +73,13 @@ visualize_coverage automation: artifacts: reports: cobertura: ${REPORTS_PATH}/cobertura.xml + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' + - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' + - changes: + - src/$IMAGE_NAME/** + - manifests/${IMAGE_NAME}service.yaml + - .gitlab-ci.yml # Deployment of automation service in Kubernetes Cluster deploy automation: