From b9745896936e679ae59acfc3e3eeac24cace6f41 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 11 Jun 2026 09:42:56 +0000 Subject: [PATCH] fix: use webhook instead of SSH --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7491048..d8c6300 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,6 +6,6 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - name: Deploy via SSH + - name: Trigger webhook run: | - ssh -o StrictHostKeyChecking=no root@192.168.1.112 "/opt/deploy-shop.sh server main" + curl -s -X POST http://192.168.1.112:9999 -H "Content-Type: application/json" -d "{"ref":"refs/heads/main","repository":{"name":"shop-server"}}" \ No newline at end of file