Better ntfy notifs. (#5793)

This commit is contained in:
Dessalines 2025-06-17 05:37:18 -04:00 committed by GitHub
parent bc23e95f50
commit aef564f098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -307,22 +307,31 @@ steps:
when:
- event: tag
notify_on_build:
notify_success:
image: alpine:3
commands:
- apk add curl
- "curl -d'Lemmy CI build ${CI_PIPELINE_STATUS}: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
- "curl -H'Title: ✔️ ${CI_REPO_NAME}/${CI_COMMIT_SOURCE_BRANCH}' -d'${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
- event: [pull_request, tag]
status: [failure, success]
- event: pull_request
status: [success]
notify_failure:
image: alpine:3
commands:
- apk add curl
- "curl -H'Title: ❌ ${CI_REPO_NAME}/${CI_COMMIT_SOURCE_BRANCH}' -d'${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
- event: pull_request
status: [failure]
notify_on_tag_deploy:
image: alpine:3
commands:
- apk add curl
- "curl -d'lemmy:${CI_COMMIT_TAG} deployed' ntfy.sh/lemmy_drone_ci"
- "curl -H'Title: ${CI_REPO_NAME}:${CI_COMMIT_TAG} deployed' -d'${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
- event: tag
event: tag
services:
database: