GitOps for n8n: Treating Workflows as Code
summary
A Python CLI called n8n-gitops uses the n8n REST API to export workflows into a structured repo (YAML manifest, workflows JSON, and a scripts folder that extracts embedded JavaScript/Python), installs local git hooks, runs validations and drift correction in CI (example uses GitHub Actions), and deploys specific Git tags or commits with dry-run and rollback support; the live demo successfully pushes to staging then tags to deploy to production while keeping credentials out of automation.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:54Speaker introduction
- 5:07What is n8n and its limitations
- 8:45GitOps gap in n8n workflows
- 11:39n8n CLI and API limitations
- 16:41Introducing n8n GitOps tool
- 20:03Project structure and Git integration
- 23:23Local automation with Git hooks
- 26:56Live demo setup
- 28:00Live demo workflow
- 36:11GitOps principles applied
- 37:16Benefits of GitOps for n8n
- 38:45Tool installation and resources
- 39:29Q&A session
related talks
06mGitOps - At a Glance
05mCloud Native CI/CD using 'GitOps'
35mGitOps - Operations by Pull Request
29mGit-push Workflows (using git hooks) for Deploying Applications
31mGitOps, the Final Frontier: Proposing, Promoting, and Reverting
19mGitOps 101: Demystifying GitOps
47mGitOps - Using Git as your source of truth for build, deploy and observability
22mCreating Serverless CI/CD on Kubernetes using GitOps
