I'm trying to set up a manual job to deploy in production and I'd like to understand the 2nd rule :
deploy_prod:
stage: deploy_prod
rules:
- if: $CI_PIPELINE_SOURCE == 'web'
when: manual
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == 'master'
when: manual
script: echo 1
the first rule allows me to deploy in production by click run pipeline on branch master, which will create a "blocked" pipeline requiring me to click the play button to run.
Is it possible to have that "blocked" pipeline created without having me to click run pipeline (I mean in the list of pipeline, I still want to need to click the play button to run it but that's one less step)
Concerning the second rule, I understand that if I remove
when: manualany push (commit, merged branch) to master would trigger the job immediately, so what should be the behaviour when usingwhen: manual?
Thanks in advance for your help