Test ntfy
This commit is contained in:
parent
34883486cf
commit
43c6d01c1a
@ -111,24 +111,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Wait for ntfy service to be healthy
|
|
||||||
run: |
|
|
||||||
ssh -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP '
|
|
||||||
echo "Waiting for ntfy container..."
|
|
||||||
for i in {1..30}; do
|
|
||||||
STATUS=$(docker inspect --format="{{json .State.Health.Status }}" ntfy)
|
|
||||||
if [[ $STATUS == "\"healthy\"" ]]; then
|
|
||||||
echo "ntfy is healthy!"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "ntfy not ready yet ($STATUS). Retrying..."
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
echo "Error: ntfy did not become healthy in time."
|
|
||||||
exit 1
|
|
||||||
'
|
|
||||||
|
|
||||||
- name: Notify ntfy
|
- name: Notify ntfy
|
||||||
run: |
|
run: |
|
||||||
STATUS="${{ needs.deploy.result }}"
|
STATUS="${{ needs.deploy.result }}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user