The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "DockerFile",
"nodes": [
{
"parameters": {
"authentication": "oAuth2",
"owner": {
"__rl": true,
"value": "https://github.com/Woeter69",
"mode": "url"
},
"repository": {
"__rl": true,
"value": "https://github.com/Woeter69/algo",
"mode": "url"
},
"events": [
"push"
],
"options": {}
},
"type": "n8n-nodes-base.githubTrigger",
"typeVersion": 1,
"position": [
0,
0
],
"id": "d2d271bf-d144-4886-8396-537874a92d3b",
"name": "Github Trigger",
"credentials": {
"githubOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "b638f563-34f9-4fec-b32e-1c50c0649043",
"leftValue": "={{ ($json.body.commits || []).reduce(function(acc, commit) { return acc.concat(commit.added || []).concat(commit.modified || []).concat(commit.removed || []); }, []).some(function(filePath) { return filePath.toLowerCase().includes('dockerfile'); }) }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
208,
0
],
"id": "ad59cdae-3cae-41fe-99f1-1333921be7db",
"name": "If"
},
{
"parameters": {
"authentication": "webhook",
"options": {},
"embeds": {
"values": [
{
"inputMethod": "json",
"json": "={\n \"title\": \"Dockerfile Updated in `{{ $json.body.repository.name }}`\",\n \"color\": 3447003,\n \"description\": \"<@&1423674084096610465> The `Dockerfile` has been modified. Teammates should consider pulling the latest changes and rebuilding the Docker image.\",\n \"fields\": [\n {\n \"name\": \"Committer\",\n \"value\": \"{{ $json.body.pusher.name }}\",\n \"inline\": true\n },\n {\n \"name\": \"Branch\",\n \"value\": \"{{ $json.body.ref.split('/').pop() }}\",\n \"inline\": true\n },\n {\n \"name\": \"Commit Message\",\n \"value\": \"{{ $json.body.head_commit.message }}\"\n }\n ],\n \"url\": \"{{ $json.body.head_commit.url }}\"\n}"
}
]
}
},
"type": "n8n-nodes-base.discord",
"typeVersion": 2,
"position": [
416,
-96
],
"id": "cc8389d5-bd58-4e0c-9344-511b87fe6541",
"name": "Discord",
"credentials": {
"discordWebhookApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Github Trigger": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Discord",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "e108703e-600b-4544-8d40-c7834edfdfe0",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "yFbUvUai4h4JZtQb",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
discordWebhookApigithubOAuth2Api
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
DockerFile. Uses githubTrigger, discord. Event-driven trigger; 3 nodes.
Source: https://github.com/Woeter69/automations/blob/dd413f06b2fd34ae191f8077aef598cf2dcbd296/n8n/DockerFile.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Turn On A Light To A Specific Color On Any Update In Github Repository. Uses githubTrigger, homeAssistant, stickyNote. Event-driven trigger; 4 nodes.
This workflow turns a light red when an update is made to a GitHub repository. By default, updates include pull requests, issues, pushes just to name a few. GitHub credentials. Home Assistant credenti
Trigger a build in Travis CI when code changes are push to a GitHub repo. Uses githubTrigger, travisCi. Event-driven trigger; 4 nodes.
Assign Issues To Interested Contributors. Uses githubTrigger, noOp, github. Event-driven trigger; 11 nodes.
Streamline your open source project with intelligent issue assignment automation.