renaming jobs
This commit is contained in:
		@@ -1,33 +0,0 @@
 | 
				
			|||||||
name: DEPLOY VM at proxmox
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
on:
 | 
					 | 
				
			||||||
  workflow_dispatch:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
  deploy:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Deploying VM to Proxmox 
 | 
					 | 
				
			||||||
        uses: appleboy/ssh-action@v1.2.0
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          host: 192.168.11.102
 | 
					 | 
				
			||||||
          username: root
 | 
					 | 
				
			||||||
          password: ${{ secrets.PASSWORD }}
 | 
					 | 
				
			||||||
          port: 22
 | 
					 | 
				
			||||||
          script: |
 | 
					 | 
				
			||||||
            pveversion
 | 
					 | 
				
			||||||
            qm create 140 --name cloudINIT140 --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26
 | 
					 | 
				
			||||||
            qm set 140 --bios seabios
 | 
					 | 
				
			||||||
            qm importdisk 140 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img smallDisk
 | 
					 | 
				
			||||||
            qm set 140 --virtio0 smallDisk:140/vm-140-disk-0.raw
 | 
					 | 
				
			||||||
            qm set 140 --ide2 smallDisk:cloudinit
 | 
					 | 
				
			||||||
            qm set 140 --boot order=virtio0
 | 
					 | 
				
			||||||
            qm set 140 --ipconfig0 ip=192.168.11.240/24,gw=192.168.11.1
 | 
					 | 
				
			||||||
            qm set 140 --ciuser chs --cipassword genius
 | 
					 | 
				
			||||||
            qm set 140 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
 | 
					 | 
				
			||||||
            qm set 140 --agent enabled=1
 | 
					 | 
				
			||||||
            qm start 140
 | 
					 | 
				
			||||||
            qm resize 140 virtio0 +30G
 | 
					 | 
				
			||||||
             
 | 
					 | 
				
			||||||
							
								
								
									
										33
									
								
								.gitea/workflows/cloudINIT140_DEPLOY.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.gitea/workflows/cloudINIT140_DEPLOY.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					name: DEPLOY VM at proxmox
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  deploy:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Deploying VM to Proxmox 
 | 
				
			||||||
 | 
					        uses: appleboy/ssh-action@v1.2.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          host: 192.168.11.102
 | 
				
			||||||
 | 
					          username: root
 | 
				
			||||||
 | 
					          password: ${{ secrets.PASSWORD }}
 | 
				
			||||||
 | 
					          port: 22
 | 
				
			||||||
 | 
					          script: |
 | 
				
			||||||
 | 
					            pveversion
 | 
				
			||||||
 | 
					            qm create 240 --name cloudINIT240 --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26
 | 
				
			||||||
 | 
					            qm set 240 --bios seabios
 | 
				
			||||||
 | 
					            qm importdisk 240 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img smallDisk
 | 
				
			||||||
 | 
					            qm set 240 --virtio0 smallDisk:240/vm-240-disk-0.raw
 | 
				
			||||||
 | 
					            qm set 240 --ide2 smallDisk:cloudinit
 | 
				
			||||||
 | 
					            qm set 240 --boot order=virtio0
 | 
				
			||||||
 | 
					            qm set 240 --ipconfig0 ip=192.168.11.240/24,gw=192.168.11.1
 | 
				
			||||||
 | 
					            qm set 240 --ciuser chs --cipassword genius
 | 
				
			||||||
 | 
					            qm set 240 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
 | 
				
			||||||
 | 
					            qm set 240 --agent enabled=1
 | 
				
			||||||
 | 
					            qm start 240
 | 
				
			||||||
 | 
					            qm resize 240 virtio0 +30G
 | 
				
			||||||
 | 
					             
 | 
				
			||||||
@@ -18,6 +18,6 @@ jobs:
 | 
				
			|||||||
          port: 22
 | 
					          port: 22
 | 
				
			||||||
          script: |
 | 
					          script: |
 | 
				
			||||||
            pveversion
 | 
					            pveversion
 | 
				
			||||||
            qm stop 140
 | 
					            qm stop 240
 | 
				
			||||||
            qm destroy 140
 | 
					            qm destroy 240
 | 
				
			||||||
             
 | 
					             
 | 
				
			||||||
		Reference in New Issue
	
	Block a user