Update ntfy step

This commit is contained in:
Keannu Christian Bernasol 2025-03-27 04:20:00 +08:00
parent c22a31747c
commit b9c5840afe
2 changed files with 23 additions and 3 deletions

View file

@ -27,9 +27,19 @@ steps:
title: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
priority: urgent
click: https://blog.06222001.xyz
icon: https://blog.06222001.xyz/img/logo.svg
icon: https://github.com/woodpecker-ci/woodpecker/blob/main/docs/static/img/logo.svg
tags: robot,${CI_REPO_NAME}
message: ${CI_COMMIT_MESSAGE}
depends_on: build
- name: discord
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: DISCORD_WEBHOOK_ID
webhook_token:
from_secret: DISCORD_WEBHOOK_TOKEN
message: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
depends_on: build
when:
- branch: master

View file

@ -15,12 +15,22 @@ steps:
settings:
url:
from_secret: NTFY_URL
title: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
title: "${CI_REPO_NAME} deploy ${CI_PREV_PIPELINE_STATUS}"
priority: urgent
click: https://blog.06222001.xyz
icon: https://blog.06222001.xyz/img/logo.svg
icon: https://github.com/woodpecker-ci/woodpecker/blob/main/docs/static/img/logo.svg
tags: robot,${CI_REPO_NAME}
message: ${CI_COMMIT_MESSAGE}
depends_on: build
- name: discord
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: DISCORD_WEBHOOK_ID
webhook_token:
from_secret: DISCORD_WEBHOOK_TOKEN
message: "${CI_REPO_NAME} deploy ${CI_PREV_PIPELINE_STATUS}"
depends_on: build
when:
- branch: master