mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-11 20:41:24 +08:00
Update .yml files
This commit is contained in:
parent
673c4903e2
commit
9e2954940f
2 changed files with 21 additions and 1 deletions
|
@ -30,6 +30,16 @@ steps:
|
||||||
icon: https://blog.06222001.xyz/img/logo.svg
|
icon: https://blog.06222001.xyz/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
|
||||||
|
|
|
@ -31,12 +31,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://blog.06222001.xyz/img/logo.svg
|
||||||
tags: robot,${CI_REPO_NAME}
|
tags: robot,${CI_REPO_NAME}
|
||||||
message: ${CI_COMMIT_MESSAGE}
|
message: ${CI_COMMIT_MESSAGE}
|
||||||
|
depends_on: deploy
|
||||||
|
- 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: deploy
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- branch: master
|
- branch: master
|
||||||
|
|
Loading…
Add table
Reference in a new issue