Hello,
I have parameterized job defined as follows:
jobs:
deploy-job:
parameters:
env:
type: string
steps:
.....
and workflow:
workflows:
main:
jobs:
- deploy-job:
env: staging
- deploy-job:
env: production
requires: #### AND HERE I want to require success of staging deploy
I can have more of those jobs, i.e. before production deploy I could have approval job that also requires deploy to staging succeed, so my workflow would consist of
- deploy-job # env: staging
- approve-prod-deploy
requires:
# what? how to say "requires: deploy-job env: staging"?
- deploy-job # env: prod
requires:
approve-prod-deploy
What should I do? How could I set some kind of “alias” for call of parameterized job to use it later to refer specific call in requirements section?
Thank you.