test ntfy
Some checks failed
Build & Deploy Costco Grocery List / build (push) Successful in 17s
Build & Deploy Costco Grocery List / deploy (push) Failing after 5s
Build & Deploy Costco Grocery List / notify (push) Failing after 2s

This commit is contained in:
Nico 2025-11-26 21:55:25 -08:00
parent 38e5826405
commit 34883486cf
2 changed files with 13 additions and 17 deletions

View File

@ -80,7 +80,8 @@ jobs:
- name: Install SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
# echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed2551
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
@ -108,6 +109,7 @@ jobs:
notify:
needs: deploy
runs-on: ubuntu-latest
if: always()
steps:
- name: Wait for ntfy service to be healthy
@ -129,7 +131,16 @@ jobs:
- name: Notify ntfy
run: |
STATUS="${{ needs.deploy.result }}"
echo "Deployment job finished with status: $STATUS"
if [ "$STATUS" = "success" ]; then
MSG="🚀 Costco App Deployment succeeded: $IMAGE_NAME:${{ github.sha }}"
else
MSG="❌ Costco App Deployment FAILED: $IMAGE_NAME:${{ github.sha }}"
fi
curl -d "🚀 Deployment successful: $IMAGE_NAME:$GITHUB_SHA" \
https://ntfy.nicosaya.com/server-deploy
https://ntfy.nicosaya.com/gitea

View File

@ -18,18 +18,3 @@ services:
- "3000:5173"
depends_on:
- backend
services:
ntfy:
image: binwiederhier/ntfy
ports:
- 8081:80
volumes:
- ./ntfy/cache:/var/cache/ntfy
- ./ntfy/etc:/etc/ntfy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/"]
interval: 5s
timeout: 3s
retries: 10