Add manual input for domain name
Switch to key-based authentication
This commit is contained in:
parent
b8c000a6a7
commit
91f24ac272
@ -5,6 +5,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
host:
|
||||||
|
description: 'Domain name of host to connect (e.g. jafner.net)'
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ssh:
|
ssh:
|
||||||
@ -13,8 +17,8 @@ jobs:
|
|||||||
- name: SSH into host
|
- name: SSH into host
|
||||||
uses: appleboy/ssh-action@v1
|
uses: appleboy/ssh-action@v1
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST_DOMAIN }}
|
host: ${{ inputs.host }}
|
||||||
username: ${{ secrets.HOST_USERNAME }}
|
username: ${{ secrets.HOST_USERNAME }}
|
||||||
password: ${{ secrets.HOST_PASSWORD }}
|
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
|
||||||
script: |
|
script: |
|
||||||
echo "Hello, world!" >> ~/hello.txt
|
echo "Hello, world!" >> ~/hello.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user