try deploy vm
This commit is contained in:
@@ -19,13 +19,22 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: executing remote ssh commands using password
|
- name: upload script to Proxmox
|
||||||
uses: appleboy/ssh-action@v1.2.0
|
uses: appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
host: 192.168.11.102
|
host: 192.168.11.102
|
||||||
username: root
|
username: root
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
port: 22
|
port: 22
|
||||||
script: |
|
source: './scripts/create_cloud_VM_140.sh'
|
||||||
bash ~/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
|
||||||
Reference in New Issue
Block a user