Hi.
Is it possible to dynamically refer to other jobs in the require
list by something generated instead of their static names?
I.e. instead of
- publish-images:
<<: *something
name: Build and publish builder images (<< matrix.version >>)
filters:
branches:
only:
- main
- deploy-to-prod-clusters:
name: Approve Production deployment
requires:
- Build and publish builder images (7.0)
- Build and publish builder images (6.0)
type: approval
You could generate something dynamic for requires
that points to publish-images
as well as all permutations of that?
Not a blocking issue, but I’d like to automate this instead of manually updating things everywhere whenever I add new elements to the matrix.
Thank you in advance.