diff --git a/.gitea/workflows/build-action.yaml b/.gitea/workflows/build-action.yaml index 304e02f7..dcb19c50 100644 --- a/.gitea/workflows/build-action.yaml +++ b/.gitea/workflows/build-action.yaml @@ -74,17 +74,18 @@ jobs: cd pansoft-plrl/apps/web-office echo "Local files in the directory:" ls - sshpass -p "zxs123123" scp -o StrictHostKeyChecking=no -r index.html root@172.19.183.27:/opt/pansoft + rsync -av --delete -e "ssh -p ${{ vars.REMOTE_PORT }}" /opt/dockerfile/ ${{ vars.REMOTE_USER }}@${{ vars.REMOTE_HOST }}:/opt/test + scp -o StrictHostKeyChecking=no -r index.html root@9.107.158.16:/opt/pansoft echo "Files transferred." # Execute remote commands - - name: Execute remote commands - run: | - echo "Executing remote commands..." - sshpass -p "zx123123" ssh -o StrictHostKeyChecking=no root@172.19.183.27 << 'EOF' - echo "Removing old files..." - rm -rf /opt/pansoft/* - echo "Old files removed." - mv /opt/pansoft/dist/* /opt/pansoft/ - echo "Deployment complete." - EOF \ No newline at end of file + # - name: Execute remote commands + # run: | + # echo "Executing remote commands..." + # sshpass -p "zx123123" ssh -o StrictHostKeyChecking=no root@172.19.183.27 << 'EOF' + # echo "Removing old files..." + # rm -rf /opt/pansoft/* + # echo "Old files removed." + # mv /opt/pansoft/dist/* /opt/pansoft/ + # echo "Deployment complete." + # EOF \ No newline at end of file