This n8n workflow automates the process of updating the n8n automation platform running inside Docker containers, while also providing version checks and notifications. It is designed to ensure that your n8n instance stays up-to-date with minimal manual effort. The workflow can be scheduled to run every few days or triggered manually for on-demand updates.
The process starts with setting default variables such as the working directory, container name, and Telegram chat ID. It then fetches information from GitHub about the latest n8n release and compares this version with the currently installed version on your server by executing commands via SSH. Sticky notes provide step-by-step instructions and context to the user.
If a newer version is available, the workflow sends a Telegram message asking for approval to proceed with the update. Upon receiving approval, it pulls the latest Docker image, runs docker compose commands to update the container, and finally sends a notification confirming that the update is complete. If the installed and latest versions match, it informs the user that n8n is already up-to-date.
This workflow is highly useful for maintaining production environments, ensuring the latest features and security updates are applied automatically, and reducing downtime through scheduled or manual checks.
Reviews
There are no reviews yet.