更新 .gitea/workflows/build-action.yaml
Frontend CI/CD / build (web-office) (push) Failing after 12s Details

This commit is contained in:
z9130 2024-09-17 11:30:30 +08:00
parent 2af44beee1
commit dfb685a4b3
1 changed files with 12 additions and 11 deletions

View File

@ -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
# - 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