I’m currently trying to deploy NServiceBus endpoints. I’ve set the machines up with tags for each endpoint’s package and file name, so “Endpoint.One”, “Endpoint.Two” etc. What I would like to do is access the current tag that’s being deployed.
So, for example, Machine Alpha has been tagged with Endpoint.One and Endpoint.Two. I want two deployments to happen to it, one for each package, and those deployments to be configured based on the Endpoint.One and Endpoint.Two tags, respectively.
Is this possible without making a different process for each tag? I can only find variables which list tags, not select the current one.
Thanks for reaching out! Firstly, please correct me if I’ve mistaken anything about your question at all, and feel free to expand upon your scenario if so
It would require two separate processes to do this with machine roles. If you have a machine with two Roles, and a single step with both of those roles, there’s no way to redeploy the step for both roles. The step will only execute once.
Multi-tenancy sounds like it would be a great option for you to avoid having to create separate processes. By replacing the endpoint tags with Tenant Tags, that would allow you to deploy packages based upon your machine’s Tenant Tags.