back to bash
This commit is contained in:
@@ -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
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user