test ntfy
This commit is contained in:
parent
38e5826405
commit
34883486cf
@ -80,7 +80,8 @@ jobs:
|
|||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
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
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
|
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
@ -108,6 +109,7 @@ jobs:
|
|||||||
notify:
|
notify:
|
||||||
needs: deploy
|
needs: deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: always()
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Wait for ntfy service to be healthy
|
- name: Wait for ntfy service to be healthy
|
||||||
@ -129,7 +131,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Notify ntfy
|
- name: Notify ntfy
|
||||||
run: |
|
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" \
|
curl -d "🚀 Deployment successful: $IMAGE_NAME:$GITHUB_SHA" \
|
||||||
https://ntfy.nicosaya.com/server-deploy
|
https://ntfy.nicosaya.com/gitea
|
||||||
|
|
||||||
|
|
||||||
@ -18,18 +18,3 @@ services:
|
|||||||
- "3000:5173"
|
- "3000:5173"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- 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
|
|
||||||
Loading…
Reference in New Issue
Block a user