From c8daf2ac53d72adbc2a30f69c1b7698c0742483e Mon Sep 17 00:00:00 2001 From: mafyuh Date: Sun, 9 Jun 2024 04:51:41 +0000 Subject: [PATCH] Update .forgejo/workflows/CD.yml --- .forgejo/workflows/CD.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index 9080ed3..a74220d 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -22,23 +22,6 @@ jobs: run: | for folder in $(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | cut -d/ -f1 | sort | uniq) do - case $folder in - arrs) - host="${{ secrets.ARRS_IP }}" - ;; - ag_main) - host="${{ secrets.AGMAIN_IP }}" - ;; - downloaders) - host="${{ secrets.DOWNLOADERS_IP }}" - ;; - # Add cases for other folders/hosts - *) - echo "Unknown folder: $folder" - continue - ;; - esac - - echo "Deploying to $host for folder $folder" - ssh -o StrictHostKeyChecking=no mafyuh@$host "cd /Auto-Homelab/$folder && git pull && docker-compose up -d" + echo "Deploying to $folder" + ./scripts/deploy.sh $folder done