ci: fix gitlab-ci schema validation
IDE plugins (e.g. vscode-yaml) complains about invalid gitlab-ci.yml
schema because yaml anchors don't flatten lists.
This patch re-organizes anchors to praise schema validation and to make it easier to understand (or at least it tries to).