Commit ccb82564 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

chore: use workflow rules

parent 674d87cf
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -13,6 +13,14 @@
# program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 
# Floor, Boston, MA  02110-1301, USA.
# =========================================================================================
# default workflow rules
workflow:
  rules:
    # exclude merge requests
    - if: $CI_MERGE_REQUEST_ID
      when: never
    - when: always

variables:
  # variabilized tracking image
  TBC_TRACKING_IMAGE: "$CI_REGISTRY/to-be-continuous/tools/tracking:master"
@@ -324,9 +332,6 @@ xxx-build:
    paths:
        - build/
        - reports/
  rules:
    # exclude merge requests
    - if: '$CI_MERGE_REQUEST_ID == null'

# (example) linter job
xxx-lint:
@@ -344,9 +349,6 @@ xxx-lint:
    paths:
      - reports/
  rules:
    # exclude merge requests
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # on production or integration branches: auto
    - if: '$CI_COMMIT_REF_NAME =~ $PROD_REF || $CI_COMMIT_REF_NAME =~ $INTEG_REF'
    # else (development branches): manual & non-blocking
@@ -369,9 +371,6 @@ xxx-depcheck:
    paths:
      - reports/
  rules:
    # exclude merge requests
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # on schedule: auto
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
      allow_failure: true
@@ -393,9 +392,6 @@ xxx-publish:
  script:
    - xxx $XXX_PUBLISH_ARGS
  rules:
    # exclude merge requests
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # on production branch(es): manual & non-blocking if $XXX_PUBLISH_ENABLED is set
    - if: '$XXX_PUBLISH_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF'
      when: manual