Skip to content

Commit

Permalink
fix(ci): Wait 5 seconds before checking status and healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr committed Mar 17, 2024
1 parent c401700 commit 192c547
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ jobs:
remote_key: ${{ secrets.SSH_KEY }}

- name: Restart server
run: ssh prod 'sudo systemctl restart flok'

- name: Check status
run: ssh prod 'sudo systemctl status flok'
run: ssh prod 'sudo systemctl restart flok && sleep 5 && sudo systemctl status flok'

- name: Healthcheck
run: curl -I https://flok.cc/ | grep "200 OK" || exit 1

0 comments on commit 192c547

Please sign in to comment.