Compare commits
2 Commits
29a7fad73b
...
879400718b
Author | SHA1 | Date | |
---|---|---|---|
|
879400718b | ||
|
a9901f3f24 |
@ -7,19 +7,27 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ssh:
|
ssh:
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: homelab/vyos
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Jafner.net repo
|
- name: Checkout Jafner.net repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Print env value
|
- name: Configure SSH agent
|
||||||
run: |
|
run: |
|
||||||
echo "${{ vars.TESTVAR }}"
|
echo ${{ secrets.RUNNER_SSH_PRIVATEKEY }} >> /tmp/key
|
||||||
- name: SSH into host
|
alias ssh='ssh -i /tmp/key'
|
||||||
uses: appleboy/ssh-action@v1.1.0
|
- name: Print running VyOS version
|
||||||
with:
|
run: |
|
||||||
host: 192.168.1.1
|
./vyos.sh op show system image
|
||||||
username: vyos
|
|
||||||
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
|
# - name: SSH into host
|
||||||
debug: true
|
# uses: appleboy/ssh-action@v1.1.0
|
||||||
script: |
|
# with:
|
||||||
echo "$(date)" >> ~/hello.txt
|
# 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
Loading…
Reference in New Issue
Block a user