32 lines
626 B
YAML
32 lines
626 B
YAML
name: Create VM at proxmox
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
logLevel:
|
|
description: 'Log level'
|
|
required: true
|
|
default: 'warning'
|
|
type: choice
|
|
options:
|
|
- info
|
|
- warning
|
|
- debug
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
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'
|
|
|