From e23829091675267c405695952d0aae589608f721 Mon Sep 17 00:00:00 2001 From: mafyuh Date: Sun, 9 Jun 2024 04:25:24 +0000 Subject: [PATCH] Update .forgejo/workflows/CD.yml --- .forgejo/workflows/CD.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index 959a00a..9e7301c 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -23,7 +23,7 @@ jobs: # List all modified files and filter unique folder names folders=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | cut -d/ -f1 | sort | uniq) echo "Modified folders: $folders" - echo "::set-output name=folders::$folders" + echo "::set-output name=folders::$folders" - name: Deploy to Hosts if: steps.detect-changes.outputs.folders != '' @@ -48,9 +48,9 @@ jobs: esac echo "Deploying to $host for folder $folder" - ssh -o StrictHostKeyChecking=no mafyuh@$host << EOF + ssh -o StrictHostKeyChecking=no mafyuh@$host << 'EOF' cd /Auto-Homelab/$folder git pull - docker-compose up -d + docker-compose up -d EOF done