Recently Git-lab change only/except to rules. so if i have below only in my .gitlab-ci.yaml, what will be equivalent rules for it.
only:
- merge_requests
- triggers
Use rules like this :
rules:
- if: $CI_PIPELINE_SOURCE == "trigger" || $CI_PIPELINE_SOURCE == "merge_request_event"
when: on_success
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With