How to bulk update the execution container image
Blog post from Octopus Deploy
Execution containers in Octopus Deploy facilitate tool management during step execution, but updating these containers can be cumbersome when multiple projects and runbooks are involved. The octopusdeploy/worker-tools image, widely used due to its integrated tools, does not use the latest tag, necessitating manual specification of the version in each step. To streamline the update process, Shawn Sesna developed a PowerShell script leveraging the Octopus API to automate updating execution container images across spaces, projects, and runbooks. This script identifies and updates instances using the deprecated Ubuntu 18.04 image, replacing them with specified versions for Linux or Windows. The script is designed to skip unpublished runbooks and version-controlled projects, ensuring minimal disruption. This automation significantly reduces the burden of manual updates, showcasing the Octopus API's capabilities for efficient and automated maintenance of deployment processes.