Drone discord messages fix.

This commit is contained in:
Stanislav Nikitin 2020-06-20 21:12:31 +05:00
parent a43ec2db9f
commit 71a429dcf5
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE

View File

@ -11,7 +11,7 @@ steps:
from_secret: discord_webhook_id from_secret: discord_webhook_id
webhook_token: webhook_token:
from_secret: discord_webhook_secret from_secret: discord_webhook_secret
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).' message: 'Starting building **{{repo.name}}#{{build.number}}@{{commit.sha}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
- name: docker - name: docker
image: plugins/docker image: plugins/docker
@ -36,7 +36,7 @@ steps:
from_secret: discord_webhook_secret from_secret: discord_webhook_secret
message: " message: "
{{#success build.status}} {{#success build.status}}
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed. **{{repo.name}}#{{build.number}}@{{commit.sha}}** deployed.
{{ else }} {{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}. **{{repo.name}}#{{build.number}}@{{commit.sha}}** failed. See {{build.link}}.
{{/success}}" {{/success}}"