From 2f6fdebdffef653889e295902b95b2d50b5b759d Mon Sep 17 00:00:00 2001 From: mafyuh Date: Mon, 20 May 2024 05:26:01 +0000 Subject: [PATCH] Update scripts/README.md --- scripts/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/README.md b/scripts/README.md index b25d4a6..7c35b89 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,5 +1,21 @@ # n8n Continuous Deployment -Previously used this script for CD, it worked, but I wanted an instant deployment and not just ran on a schedule. So I created an n8n automation. Here's the breakdown: +Previously used this script for CD, it worked, but I wanted an instant deployment and not just ran on a schedule. So I created an n8n automation. Here's the visual breakdown: + +```mermaid + graph LR + A((Webhook Received)) --> B{PR Merged?} + B -- No --> C(End) + B -- Yes --> D{Extract App Name} + D --> E{SSH to Host Machine} + E --> F{Git Pull & Docker Compose Up} + F --> G{Error?} + G -- Yes --> H[Send Gotify Notification] + G -- No --> I[Extract PR Number] + I --> J[Add PR Number to Forgejo API URL] + J --> K[Send Review with Logs] + K --> L(End) + H --> L +``` ## Outline