Implement retry for check

This commit is contained in:
Gabriel Augendre 2022-09-28 01:45:08 +02:00
parent 9f68a01705
commit 36b092c800

View file

@ -36,5 +36,9 @@ jobs:
echo "${{ secrets.DEPLOY_KEY }}" > $TEMP echo "${{ secrets.DEPLOY_KEY }}" > $TEMP
ssh -o StrictHostKeyChecking=no -i $TEMP -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} /mnt/data/blog/update ssh -o StrictHostKeyChecking=no -i $TEMP -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} /mnt/data/blog/update
- name: Check - name: Check
run: | uses: nick-fields/retry@v2
curl --fail https://gabnotes.org with:
timeout_seconds: 30
max_attempts: 5
retry_wait_seconds: 2
command: curl -sSL --fail -m 10 https://gabnotes.org