From af0f7ca4a8783bd95133f9aa3ed3a35f6a4624ef Mon Sep 17 00:00:00 2001 From: "martin.cholewa" Date: Fri, 26 Sep 2025 08:32:31 +0200 Subject: [PATCH] try deploy vm --- .gitea/workflows/01_deploy_VM.yaml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) 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