mirror of
https://github.com/lemeow125/Notes.git
synced 2025-04-10 20:11:28 +08:00
Update ntfy step
This commit is contained in:
parent
c22a31747c
commit
b9c5840afe
2 changed files with 23 additions and 3 deletions
|
@ -27,9 +27,19 @@ steps:
|
||||||
title: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
|
title: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
|
||||||
priority: urgent
|
priority: urgent
|
||||||
click: https://blog.06222001.xyz
|
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}
|
tags: robot,${CI_REPO_NAME}
|
||||||
message: ${CI_COMMIT_MESSAGE}
|
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:
|
when:
|
||||||
- branch: master
|
- branch: master
|
||||||
|
|
|
@ -15,12 +15,22 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
url:
|
url:
|
||||||
from_secret: NTFY_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
|
priority: urgent
|
||||||
click: https://blog.06222001.xyz
|
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}
|
tags: robot,${CI_REPO_NAME}
|
||||||
message: ${CI_COMMIT_MESSAGE}
|
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:
|
when:
|
||||||
- branch: master
|
- branch: master
|
||||||
|
|
Loading…
Add table
Reference in a new issue