Add manual input for domain name

Switch to key-based authentication
This commit is contained in:
Joey Hafner 2024-09-06 14:20:29 -07:00
parent b8c000a6a7
commit 91f24ac272
No known key found for this signature in database

View File

@ -5,6 +5,10 @@ on:
branches:
- main
workflow_dispatch:
inputs:
host:
description: 'Domain name of host to connect (e.g. jafner.net)'
required: true
jobs:
ssh:
@ -13,8 +17,8 @@ jobs:
- name: SSH into host
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST_DOMAIN }}
host: ${{ inputs.host }}
username: ${{ secrets.HOST_USERNAME }}
password: ${{ secrets.HOST_PASSWORD }}
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
script: |
echo "Hello, world!" >> ~/hello.txt