CI: Run packaging tests (cd-release) on merge requests
I don't like merging changes that break CD.
So, let's trigger pipeline for cd-release (set up correct RELEASE_REF!) in merge_requests. Check regularly for status until done.
This should be doable via gitlab-api. The trigger request returns (among others also "web_url": "https://gitlab.fit.cvut.cz/algorithms-library-toolkit/infrastructure/cd-release/pipelines/<ID>",
. If we get the ID, we can get list of pipeline jobs (https://gitlab.fit.cvut.cz/help/api/jobs.md) and check for status
key.
This however also needs to modify CI in cd-release as we want only the packaging stage to run. Probably add a new variable?