Compare commits

...

2 Commits

Author SHA1 Message Date
Joey Hafner
9f4aa64f8b
#16 Constrain workflow trigger to changes to homelab/vyos/config.boot
Some checks failed
SSH and echo to file / ssh (push) Failing after 3s
2024-10-24 15:35:10 -07:00
Joey Hafner
f0221b363f
#16 Init workflow for VyOS deployments
- Attempts to SSH into host and create a hello text file.
2024-10-24 15:32:33 -07:00
2 changed files with 13 additions and 13 deletions

View File

@ -2,8 +2,8 @@ name: SSH and echo to file
on: on:
push: push:
branches: branches: [ main ]
- main paths: [ 'homelab/vyos/config.boot' ]
jobs: jobs:
ssh: ssh:
@ -12,8 +12,8 @@ jobs:
- name: SSH into host - name: SSH into host
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
with: with:
host: ${{ secrets.HOST_DOMAIN }} host: 192.168.1.1
username: ${{ secrets.HOST_USERNAME }} username: vyos
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }} key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
script: | script: |
echo "Hello, world!" >> ~/hello.txt echo "$(date)" >> ~/hello.txt

File diff suppressed because one or more lines are too long