mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-11 20:41:24 +08:00
Drop ntfy
This commit is contained in:
parent
e0cd05e7a9
commit
de47b1ea4b
2 changed files with 8 additions and 26 deletions
|
@ -19,18 +19,6 @@ steps:
|
||||||
- docker push "$REGISTRY_IMAGE_TAG"
|
- docker push "$REGISTRY_IMAGE_TAG"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- name: ntfy
|
|
||||||
image: codeberg.org/l-x/woodpecker-ntfy
|
|
||||||
settings:
|
|
||||||
url:
|
|
||||||
from_secret: NTFY_URL
|
|
||||||
title: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
|
|
||||||
priority: urgent
|
|
||||||
click: https://api.template.06222001.xyz
|
|
||||||
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
|
- name: discord
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
settings:
|
settings:
|
||||||
|
@ -38,7 +26,10 @@ steps:
|
||||||
from_secret: DISCORD_WEBHOOK_ID
|
from_secret: DISCORD_WEBHOOK_ID
|
||||||
webhook_token:
|
webhook_token:
|
||||||
from_secret: DISCORD_WEBHOOK_TOKEN
|
from_secret: DISCORD_WEBHOOK_TOKEN
|
||||||
message: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
|
message: >
|
||||||
|
{{#success build.status}}
|
||||||
|
{{repo.name}} build #{{build.number}} {{build.status}}
|
||||||
|
{{/success}}
|
||||||
depends_on: build
|
depends_on: build
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -26,18 +26,6 @@ steps:
|
||||||
docker pull "$REGISTRY_IMAGE_TAG";
|
docker pull "$REGISTRY_IMAGE_TAG";
|
||||||
docker-compose up -d;
|
docker-compose up -d;
|
||||||
docker image prune -af;"
|
docker image prune -af;"
|
||||||
- name: ntfy
|
|
||||||
image: codeberg.org/l-x/woodpecker-ntfy
|
|
||||||
settings:
|
|
||||||
url:
|
|
||||||
from_secret: NTFY_URL
|
|
||||||
title: "${CI_REPO_NAME} deploy ${CI_PREV_PIPELINE_STATUS}"
|
|
||||||
priority: urgent
|
|
||||||
click: https://api.template.06222001.xyz
|
|
||||||
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: deploy
|
|
||||||
- name: discord
|
- name: discord
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
settings:
|
settings:
|
||||||
|
@ -45,7 +33,10 @@ steps:
|
||||||
from_secret: DISCORD_WEBHOOK_ID
|
from_secret: DISCORD_WEBHOOK_ID
|
||||||
webhook_token:
|
webhook_token:
|
||||||
from_secret: DISCORD_WEBHOOK_TOKEN
|
from_secret: DISCORD_WEBHOOK_TOKEN
|
||||||
message: "${CI_REPO_NAME} deploy ${CI_PREV_PIPELINE_STATUS}"
|
message: >
|
||||||
|
{{#success build.status}}
|
||||||
|
{{repo.name}} deployment #{{build.number}} {{build.status}}
|
||||||
|
{{/success}}
|
||||||
depends_on: deploy
|
depends_on: deploy
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Add table
Reference in a new issue