|
|
@ -45,3 +45,24 @@ steps: |
|
|
|
from_secret: RSYNC_USER |
|
|
|
from_secret: RSYNC_USER |
|
|
|
key: |
|
|
|
key: |
|
|
|
from_secret: RSYNC_SSH_KEY |
|
|
|
from_secret: RSYNC_SSH_KEY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: notification |
|
|
|
|
|
|
|
image: appleboy/drone-telegram |
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
|
|
token: |
|
|
|
|
|
|
|
from_secret: TELEGRAM_TOKEN |
|
|
|
|
|
|
|
to: |
|
|
|
|
|
|
|
from_secret: TELEGRAM_USERID |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
status: [ success, failure ] |
|
|
|
|
|
|
|
message: > |
|
|
|
|
|
|
|
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}} |
|
|
|
|
|
|
|
{{#success build.status}} |
|
|
|
|
|
|
|
✅ succeeded for 👷♂️ build {{build.number}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
🛑 failed for 👷♂️ build {{build.number}} |
|
|
|
|
|
|
|
{{/success}} |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
status: |
|
|
|
|
|
|
|
- failure |
|
|
|
|
|
|
|
- success |
|
|
|