diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1af20a0..73f691b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -36,15 +36,12 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan -p ${{ - secrets.DEPLOY_PORT || 22 - }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts + ssh-keyscan ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts - name: Deploy with rsync run: | rsync -avz --delete \ --filter='P error/' \ --filter='P stats/' \ - -e "ssh -v -p ${{ secrets.DEPLOY_PORT || 22 }}" \ site/ \ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/var/www/dev.postalpoint.app/web