Compare commits

..

2 Commits

Author SHA1 Message Date
Joey Hafner
879400718b
#16 Remove unused static-mapping
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
SSH and echo to file / ssh (push) Failing after 11s
2024-10-24 16:30:31 -07:00
Joey Hafner
a9901f3f24
#16 Run commands from vyos dir, add step to run commands via vyos.sh 2024-10-24 16:29:41 -07:00
2 changed files with 27 additions and 19 deletions

View File

@ -7,19 +7,27 @@ on:
jobs:
ssh:
defaults:
run:
working-directory: homelab/vyos
runs-on: ubuntu-latest
steps:
- name: Checkout Jafner.net repo
uses: actions/checkout@v4
- name: Print env value
- name: Configure SSH agent
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
echo ${{ secrets.RUNNER_SSH_PRIVATEKEY }} >> /tmp/key
alias ssh='ssh -i /tmp/key'
- name: Print running VyOS version
run: |
./vyos.sh op show system image
# - 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

File diff suppressed because one or more lines are too long