diff --git a/.gitea/workflows/01_deploy_VM.yaml b/.gitea/workflows/01_deploy_VM.yaml index 1cac084..e19859d 100644 --- a/.gitea/workflows/01_deploy_VM.yaml +++ b/.gitea/workflows/01_deploy_VM.yaml @@ -19,13 +19,22 @@ jobs: steps: - - name: executing remote ssh commands using password - uses: appleboy/ssh-action@v1.2.0 - with: - host: 192.168.11.102 - username: root - password: ${{ secrets.PASSWORD }} - port: 22 - script: | - bash ~/scripts/create_cloud_VM_140.sh - \ No newline at end of file + - name: upload script to Proxmox + uses: appleboy/scp-action@master + with: + host: 192.168.11.102 + username: root + password: ${{ secrets.PASSWORD }} + port: 22 + source: './scripts/create_cloud_VM_140.sh' + target: '/root/scripts/' + + - name: executing remote bash script + uses: appleboy/ssh-action@v1.2.0 + with: + host: 192.168.11.102 + username: root + password: ${{ secrets.PASSWORD }} + port: 22 + script: | + bash /root/scripts/create_cloud_VM_140.sh \ No newline at end of file