CI: fix release pipeline
Context
I launched some test release pipelines and they failed. This MR fixes the release pipeline. To do that:
- it introduces new stages to only start jobs that require artefacts from other jobs when those other jobs have finished (I think it actually worked without this fix though);
- it fixes the
gitlab-take-ownershiptarget of the Makefile (thechownis needed for static executables to have the right--version).
Manually testing the MR
Before the fixes: https://gitlab.com/tezos/tezos/-/pipelines/643822182
After the fixes: https://gitlab.com/tezos/tezos/-/pipelines/644073690
Those were pipelines done on MR !6323 (merged) which adds job opam:release which still failed in https://gitlab.com/tezos/tezos/-/pipelines/644073690 but you can see that the gitlab:release job was fixed.
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR