Replace 'only' and 'except' with 'rules'
What does this MR do?
Replaces usages of only
and except
in the pipeline with rules
. This is in preparation for adding a scheduled pipeline; using rules
will give us better control over when jobs run (and is the preferred mechanism).
What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab/-/issues/396560+