Fix tabbing

This commit is contained in:
Nico 2025-11-26 20:52:13 -08:00
parent 69eacfaf77
commit 398b36befb

View File

@ -105,27 +105,27 @@ jobs:
docker image prune -f docker image prune -f
EOF EOF
notify: notify:
- name: Wait for ntfy service to be healthy - name: Wait for ntfy service to be healthy
run: | run: |
ssh -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP ' ssh -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP '
echo "Waiting for ntfy container..." echo "Waiting for ntfy container..."
for i in {1..30}; do for i in {1..30}; do
STATUS=$(docker inspect --format="{{json .State.Health.Status }}" ntfy) STATUS=$(docker inspect --format="{{json .State.Health.Status }}" ntfy)
if [[ $STATUS == "\"healthy\"" ]]; then if [[ $STATUS == "\"healthy\"" ]]; then
echo "ntfy is healthy!" echo "ntfy is healthy!"
exit 0 exit 0
fi fi
echo "ntfy not ready yet ($STATUS). Retrying..." echo "ntfy not ready yet ($STATUS). Retrying..."
sleep 2 sleep 2
done done
echo "Error: ntfy did not become healthy in time." echo "Error: ntfy did not become healthy in time."
exit 1 exit 1
' '
- name: Notify ntfy - name: Notify ntfy
run: | run: |
curl -d "🚀 Deployment successful: $IMAGE_NAME:$GITHUB_SHA" \ curl -d "🚀 Deployment successful: $IMAGE_NAME:$GITHUB_SHA" \
https://ntfy.nicosaya.com/server-deploy https://ntfy.nicosaya.com/server-deploy