-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.08 KB
/
wkflw.dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy to Raspberry Pi
on:
push:
branches:
- nightly
jobs:
deploy:
runs-on: ubuntu-latest
environment: dev
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
RASPBERRY_PI_IP: ${{ secrets.RPI_IP_DEV }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
RASPBERRY_PI_UNAME: ${{ secrets.RASPBERRY_PI_UNAME }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Test IPv6 connectivity
run: ping6 -c 4 google.com
- name: Test IPv6 connectivity
run: ping6 -c 6 google.com
# - name: Check SSH port with IPv6
# run: nc -6 -zv ${{ secrets.RPI_IP_DEV }} 22
# - name: Setup SSH
# run: |
# mkdir -p ~/.ssh
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-keyscan -6 -H ${{ secrets.RPI_IP_DEV }} >> ~/.ssh/known_hosts
# - name: Test SSH connection using IPv6
# run: ssh -6 -v ${{ secrets.RASPBERRY_PI_UNAME }}@${{ secrets.RPI_IP_DEV }} exit