Self update Docker-based n8n with email approval and SSH
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on a schedule (every 3 days at 16:00). It uses only n8n's built-in nodes. It also calls hub.docker.com over HTTP.
How it runs
Trigger: On a schedule (every 3 days at 16:00).
- Get Current n8n Version (SSH): uses SSH
- Get Local Image Digest (SSH): uses SSH
- Get Remote Image Digest (HTTP Request): calls hub.docker.com
- Prepare Update Data (Edit Fields (Set)): sets 4 fields: current_version, local_digest, remote_digest…
- If: checks a condition and branches into true / false
- Ask For Approval to Update (Send Email): sends an email over SMTP
- If: checks a condition and branches into true / false
- Check Existence of Update Script (SSH): uses SSH
- If: checks a condition and branches into true / false
- Execute Update Script (SSH): uses SSH
…plus 1 more step. See the full node list below.
HTTP calls to: hub.docker.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - SSH
n8n-nodes-base.ssh - No Operation, do nothing
n8n-nodes-base.noOp - Send Email
n8n-nodes-base.emailSend - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
n8n Self-Updater Workflow > An automated n8n workflow originally built for DigitalOcean-based n8n deployments, but fully compatible with any VPS or cloud hosting (e.g., AWS, Google Cloud, Hetzner, Linode, etc.) where n8n runs via Docker. This workflow…