From 182c467e28f66a9d91109a914de4d9279a628b85 Mon Sep 17 00:00:00 2001 From: "martin.cholewa" Date: Fri, 26 Sep 2025 08:42:09 +0200 Subject: [PATCH] back to bash --- .gitea/workflows/01_deploy_VM.yaml | 35 +++++++++--------------------- scripts/create_cloud_VM_140.sh | 30 ------------------------- 2 files changed, 10 insertions(+), 55 deletions(-) delete mode 100644 scripts/create_cloud_VM_140.sh diff --git a/.gitea/workflows/01_deploy_VM.yaml b/.gitea/workflows/01_deploy_VM.yaml index ee3fff2..62d0d60 100644 --- a/.gitea/workflows/01_deploy_VM.yaml +++ b/.gitea/workflows/01_deploy_VM.yaml @@ -19,28 +19,13 @@ jobs: steps: - - name: Checkout Gitea repository - uses: gitea/checkout@v3 - - - name: List files for debugging - run: ls -l ./scripts - - - 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 + - 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: | + pveversion + \ No newline at end of file diff --git a/scripts/create_cloud_VM_140.sh b/scripts/create_cloud_VM_140.sh deleted file mode 100644 index 5622f90..0000000 --- a/scripts/create_cloud_VM_140.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -VMID=140 -VMNAME="cloudINIT140" -MEMORY=2048 -NET="virtio,bridge=vmbr0" -CORES=2 -SOCKETS=1 -OSTYPE="l26" -DISKPATH="/mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img" -DISKSTORAGE="smallDisk" -CLOUDDISK="${DISKSTORAGE}:140/vm-140-disk-0.raw" -CLOUDINIT="${DISKSTORAGE}:cloudinit" -BOOT="order=virtio0" -IPCONFIG="ip=192.168.11.240/24,gw=192.168.11.1" -CIUSER="chs" -CIPASSWORD="genius" -SSHPUBKEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAE39D/Dep3EHMWXB6wiMTL0My1SlMZVk0Y80jEv7LOb xchose@freya.local' - -qm create $VMID --name $VMNAME --memory $MEMORY --net0 $NET --cores $CORES --sockets $SOCKETS --ostype $OSTYPE -qm set $VMID --bios seabios -qm importdisk $VMID $DISKPATH $DISKSTORAGE -qm set $VMID --virtio0 $CLOUDDISK -qm set $VMID --ide2 $CLOUDINIT -qm set $VMID --boot $BOOT -qm set $VMID --ipconfig0 $IPCONFIG -qm set $VMID --ciuser $CIUSER --cipassword $CIPASSWORD -qm set $VMID --sshkey <(echo "$SSHPUBKEY") -qm start $VMID -qm resize $VMID virtio0 +30G