It seems as if it is possible to define a workflow within an orb, I have done this and have validated the orb successfully with workflows within, but how do I use those in a config file that imports the orb?
I have tried this, but it just tells me I need a required [jobs] key so it thinks I’m trying to define a new workflow.
Sure thing, what’s the preferred way to share source, are you able to pull source from just the orb name? The dev version currently has the workflows defined within it, its identifier is: ccpgames/devops-tf@dev:latest. The source is a bit lengthy at present so to avoid clutter I’ll just put the workflows section here:
Note: rollout and destroy are jobs defined elsewhere in the orb.
There’s no top-level understanding of a workflows key within Orbs, currently, so that’s the barrier here. I think your best bet is defining your jobs in the orb, and using the examples key to lay out how you’re imagining those jobs being combined together.