Test ntfy
Some checks failed
Build & Deploy Costco Grocery List / build (push) Successful in 15s
Build & Deploy Costco Grocery List / deploy (push) Failing after 5s
Build & Deploy Costco Grocery List / notify (push) Successful in 3s

This commit is contained in:
Nico 2025-11-26 22:01:41 -08:00
parent 34883486cf
commit 43c6d01c1a

View File

@ -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 }}"