diff --git a/ci-templates/auto-rules/no-default.yml b/ci-templates/auto-rules/no-default.yml index 7fd7dd66cf7242fea4dec934b1874d529227f67b..8dbd58fbe5f019291e26fed4d0fde8a02758df06 100644 --- a/ci-templates/auto-rules/no-default.yml +++ b/ci-templates/auto-rules/no-default.yml @@ -2,32 +2,15 @@ include: ci-templates/core.yml workflow: rules: - - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME =~ /^kinetic-.*/ + - if: $CI_COMMIT_REF_NAME =~ /^kinetic-.*/ variables: DEFAULT_DISTRO: "kinetic" - - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME =~ /^melodic-.*/ + - if: $CI_COMMIT_REF_NAME =~ /^melodic-.*/ variables: DEFAULT_DISTRO: "melodic" - - if: $CI_COMMIT_BRANCH && $CI_COMMIT_REF_NAME =~ /^noetic-.*/ + - if: $CI_COMMIT_REF_NAME =~ /^noetic-.*/ variables: DEFAULT_DISTRO: "noetic" - - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^kinetic-.*/ - variables: - DEFAULT_DISTRO: "kinetic" - DEPLOY: "true" - - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^melodic-.*/ - variables: - DEFAULT_DISTRO: "melodic" - DEPLOY: "true" - - if: $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^noetic-.*/ - variables: - DEFAULT_DISTRO: "noetic" - DEPLOY: "true" - - if: $CI_COMMIT_TAG - variables: - DEPLOY: "true" - - if: $CI_COMMIT_BRANCH - industrial_ci_kinetic: extends: .industrial_ci @@ -53,16 +36,14 @@ industrial_ci_noetic: - if: $DEFAULT_DISTRO == "noetic" - if: $BUILD_NOETIC - ddeploy: extends: .ddeploy rules: - - if: $DEPLOY && $CI_COMMIT_TAG + - if: $CI_COMMIT_TAG exists: - ddeploy.yaml when: always - - if: $DEPLOY - exists: + - exists: - ddeploy.yaml when: manual allow_failure: true