Skip to content

Check connection to flashhost #167

Check connection to flashhost

Check connection to flashhost #167

name: "Check connection to flashhost"
# Needed secrets:
# - DEPLOY_KEY: private ssh key to access [email protected]
# - DEPLOY_KNOWN_HOSTS: known hosts including [email protected]
# - TAILSCALE_OAUTH_CLIENT, TAILSCALE_OAUTH_SECRET: OAuth credentials for tailscale
on:
schedule:
- cron: "7 4 * * *"
workflow_dispatch:
jobs:
check-tailscale:
runs-on: ubuntu-latest
steps:
- name: "🔑 Install SSH key in agent"
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEPLOY_KEY }}
known_hosts: ${{ secrets.DEPLOY_KNOWN_HOSTS }}
- name: "🌐 Connect to tailscale network"
uses: tailscale/github-action@v3
with:
oauth-client-id: ${{ secrets.TAILSCALE_OAUTH_CLIENT }}
oauth-secret: ${{ secrets.TAILSCALE_OAUTH_SECRET }}
tags: tag:github-runner
version: latest
use-cache: 'true'
- name: ✔ Check that connection to flashhost is working
run: |
tailscale --version
tailscale status
tailscale netcheck
tailscale ping flashhost.tail9eba.ts.net
tailscale ping --icmp flashhost.tail9eba.ts.net
ping -c 3 flashhost.tail9eba.ts.net
ssh [email protected] flashhost_list_images