Jafner.net/.gitea/workflows/vyos-deploy.yaml

26 lines
584 B
YAML

name: SSH and echo to file
on:
push:
branches: [ main ]
paths: [ 'homelab/vyos/config.boot' ]
jobs:
ssh:
runs-on: ubuntu-latest
steps:
- name: Checkout Jafner.net repo
uses: actions/checkout@v4
- name: Print env value
run: |
echo "${{ vars.TESTVAR }}"
- name: SSH into host
uses: appleboy/ssh-action@v1.1.0
with:
host: 192.168.1.1
username: vyos
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
debug: true
script: |
echo "$(date)" >> ~/hello.txt