From 8a7b13da6ba9ba0e1b665da61168fbbee1feb259 Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 18:40:21 +0100 Subject: [PATCH] Fix deploy port action --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ebf19ba..e165517 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,13 +19,13 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H ${{ secrets.DEPLOY_SERVER }} >> ~/.ssh/known_hosts + ssh-keyscan ${{ secrets.DEPLOY_PORT }} -H ${{ secrets.DEPLOY_SERVER }} >> ~/.ssh/known_hosts eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519 - name: Deploy via Git Pull and Rsync run: | - ssh -p 2222 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " + ssh -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " cd ${{ secrets.DEPLOY_PATH }} && git fetch origin && git reset --hard origin/master @@ -33,7 +33,7 @@ jobs: - name: Restart docker container run: | - ssh -p 2222 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " + ssh -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} " cd ${{ secrets.DEPLOY_PATH }} && docker compose down && docker compose up --build -d