Conditional manual CD jobs
Problem to solve
Control deployment into prod from within CD by making sure code has been deployed into staging before allowing deployment into production.
Developpers and Product Owner who want to make sure product has been deployed to staging environment before going live.
One doesn't want code being deployed into production without having been tested in pre-production. We need a mecanism that blocks deployment into production without control.
two options : 1/ Add a permission to gitlab-ci's jobs so only people with coresponding permission can run the job. 2/ Change when: behaviour so that it is possible to block manual jobs from further steps until manual job from previous jobs are completed.
What does success look like, and how can we measure that?
One can rigth gitlab-ci.yaml with manual steps that depend from previous manul step.