Test ntfy
This commit is contained in:
parent
34883486cf
commit
43c6d01c1a
@ -112,23 +112,6 @@ jobs:
|
||||
if: always()
|
||||
|
||||
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
|
||||
run: |
|
||||
STATUS="${{ needs.deploy.result }}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user