You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current needs require a single deploy for dev and one or two for prod. To get the shared workflow for deploys merged, it was setup with a brute force approach. If more than two deploys are needed, then it would be better to go with a matrix of deploy destinations.
Proposed approach
@jmeridth did an analysis and provided an example of how this can be done.
Using an exclude in the matrix for the conditional deploy: may want an exclude for primary also
Something like this to replace the primary and secondary deploys. The only gotcha is that the if line (between name and needs, is not allowed because if conditional is evaluated before the matrix. Matrix can't be used at the job level for ifs. I'd suggest, if you want to go this path, you add the if conditional as an argument to your reusable workflow. Passing it in and then handling the conditional in your workflow.
The text was updated successfully, but these errors were encountered:
Description
Current needs require a single deploy for dev and one or two for prod. To get the shared workflow for deploys merged, it was setup with a brute force approach. If more than two deploys are needed, then it would be better to go with a matrix of deploy destinations.
Proposed approach
@jmeridth did an analysis and provided an example of how this can be done.
Using an exclude in the matrix for the conditional deploy: may want an exclude for primary also
Another way I tried but DID NOT work:
Something like this to replace the primary and secondary deploys. The only gotcha is that the if line (between name and needs, is not allowed because if conditional is evaluated before the matrix. Matrix can't be used at the job level for ifs. I'd suggest, if you want to go this path, you add the if conditional as an argument to your reusable workflow. Passing it in and then handling the conditional in your workflow.
The text was updated successfully, but these errors were encountered: