Skip to content

Commit

Permalink
add healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
guyzsarun committed Dec 20, 2023
1 parent 5fa848c commit 6d594b2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: healthcheck

on:
workflow_dispatch:
push:
schedule:
- cron: "0 7 * * *"

env:
HOSTS: '[
"test",
"test"
]'

jobs:
healthcheck:
runs-on: ubuntu-latest
steps:
- name: zerotier login
uses: zerotier/github-action@v1.0.1
with:
network_id: ${{ secrets.ZEROTIER_NETWORK_ID }}
auth_token: ${{ secrets.ZEROTIER_CENTRAL_TOKEN }}

- name: ping host
shell: bash
run: |
for val in ${{ env.HOSTS }}; do
echo $val
done
# count=10
# while ! ping -c 1 ${{ env.HOSTS }} ; do
# echo "waiting..." ;
# sleep 1 ;
# let count=count-1
# done
# echo "ping success"

0 comments on commit 6d594b2

Please sign in to comment.