mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2026-06-03 23:09:35 -06:00
fix: add Bearer token authentication to ntfy notification
This commit is contained in:
@@ -34,9 +34,11 @@ jobs:
|
|||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
env:
|
env:
|
||||||
NTFY_URL: ${{ secrets.NTFY_URL }}
|
NTFY_URL: ${{ secrets.NTFY_URL }}
|
||||||
|
NTFY_TOKEN: ${{ secrets.NTFY_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
curl -v \
|
curl -s -o /dev/null \
|
||||||
-H "Title: kiosk-guestbook image pushed to Docker Hub" \
|
-H "Title: kiosk-guestbook image pushed to Docker Hub" \
|
||||||
-H "Tags: white_check_mark" \
|
-H "Tags: white_check_mark" \
|
||||||
|
-H "Authorization: Bearer $NTFY_TOKEN" \
|
||||||
-d "The kiosk-guestbook container has been pushed to Docker Hub and is ready to pull. Commit: ${{ github.sha }} — ${{ github.event.head_commit.message }}" \
|
-d "The kiosk-guestbook container has been pushed to Docker Hub and is ready to pull. Commit: ${{ github.sha }} — ${{ github.event.head_commit.message }}" \
|
||||||
"$NTFY_URL"
|
"$NTFY_URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user