⚙️ Readable workflow export & deployment pipeline for multi-environment CI/CD

1,048 views · ⚙️ DevOps & CI/CD

Description

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n.

Export workflows with readable names, tagged for different environments

To ensure understandable workflow exports, ease of use in delivery pipelines, and a better developer experience, this workflow helps with exporting workflows.

Inner workings

Configration

No special setup is required for readable exporting.

Usage

Create a workflow and tag it with ‘Auto deploy to dev’ Run the workflow, this will create the needed folders and workflows with readable names. Commit these in your version control. Have a CICD pipeline build an n8n container —see the attached Dockerfile.

Check our Auto Starter workflow for auto-starting workflows after deployment.

CI/CD Bonus:

Attached are two nodes with some example configuration on building your own automated n8n deployment.

Set the following environment variables:

🔗 Nodes Used

Read/Write Files from Disk, Convert to File, Extract from File

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup