更新 .gitea/workflows/build-action.yaml
Frontend CI/CD / build (web-office) (push) Failing after 12s
Details
Frontend CI/CD / build (web-office) (push) Failing after 12s
Details
This commit is contained in:
parent
2af44beee1
commit
dfb685a4b3
|
@ -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
|
Loading…
Reference in New Issue