I need to create a YAML deployment plan for an environment that has multiple tasks, each using a different Docker image and different commands being run in the Docker image. And I'm having trouble determining how to do that.
First, I just want to verify that stages cannot be created in a deployment plan, correct?
If stages can't be used, how can I run different Docker images with different sets of commands in a deployment plan? Let's assume I have an environment named "Preprod" and I want to run some tasks similar to:
Is there a way to do this in a YAML deployment plan?
I suppose I could run these tasks as additional stages in the build plan. And just forget using a deployment plan. Or, I suppose another option would be to create a single, composite Docker image with everything I need and use that single image.
What's the best way to approach this deployment plan in Bamboo?
Would appreciate any insight from those more experienced with Bamboo.
Thanks
HI @Geary Sutterfield ,
The best approach in here would be running the tasks as additional stages in the build plan since Deployment Environment do not present the Stages concept.
Alternatively, you could be running Ansible, docker-compose or something you could use to orchestrate the behaviour and commands you have mentioned, calling it as a Script task for simplicity.
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.