Implement CI MR workflow
We have one pipeline on infra-stg, one on infra-prd
- do some change (version change, tf vars change) on some configuration(s)/envs(s)
- create MR
- CI run plans on all configurations/envs that are impacted by the change
- compute diff
- plan on diff
- store generated plans
- generate plan summary
- CI report in the MR a summary of the plans
- by adding a comment 'run plan' the CI could regenerate the plans
- some reviewer look at the plans and validate the change by adding some comment in the MR ("run apply" for example)
- CI detects the comment and tries to apply the plans generated earlier
- apply last generate plans
- if the apply succeed the MR is merged in master
- if the apply fails, the dev should fix and update its MR (process restart at step 3.)
Edited by Ghost User