From e21a62ef69db2b5c43bdcb83d8a1c419384f34c0 Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 17:07:53 +0100 Subject: [PATCH] add ssh port --- .gitea/workflows/deploy.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 55fa246..ebf19ba 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,18 +25,16 @@ jobs: - name: Deploy via Git Pull and Rsync run: | - # Pull latest on server - ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " - cd ${{ secrets.DEPLOY_PATH }} && - git fetch origin && - git reset --hard origin/master - " + ssh -p 2222 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " + cd ${{ secrets.DEPLOY_PATH }} && + git fetch origin && + git reset --hard origin/master + " - name: Restart docker container run: | - # Pull latest on server - ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " - cd ${{ secrets.DEPLOY_PATH }} && - docker compose down && - docker compose up --build -d - " + ssh -p 2222 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " + cd ${{ secrets.DEPLOY_PATH }} && + docker compose down && + docker compose up --build -d + "