Typo in commend and switching to discordrone for notifications.

This commit is contained in:
Stanislav Nikitin 2019-12-22 00:56:43 +05:00
parent 6a787e7e23
commit da4bc379d8
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
2 changed files with 9 additions and 10 deletions

View File

@ -5,7 +5,7 @@ name: build
steps: steps:
- name: notify-start - name: notify-start
image: appleboy/drone-discord image: pztrn/discordrone
settings: settings:
webhook_id: webhook_id:
from_secret: discord_webhook_id from_secret: discord_webhook_id
@ -32,8 +32,7 @@ steps:
- name: docker - name: docker
image: plugins/docker image: plugins/docker
when: when:
branch: branch: master
master
settings: settings:
username: username:
from_secret: dockerhub_user from_secret: dockerhub_user
@ -45,9 +44,9 @@ steps:
- name: notify-end - name: notify-end
when: when:
status: status:
- success - success
- failure - failure
image: appleboy/drone-discord image: pztrn/discordrone
settings: settings:
webhook_id: webhook_id:
from_secret: discord_webhook_id from_secret: discord_webhook_id
@ -55,7 +54,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}}** built and pushed to hub.docker.com. **{{repo.name}}#{{build.number}}@{{build.commit}}** built and pushed to hub.docker.com.
{{ else }} {{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}. **{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
{{/success}}" {{/success}}"

View File

@ -39,7 +39,7 @@ import (
) )
// GET for "/pastes/", a list of publicly available pastes. // GET for "/pastes/", a list of publicly available pastes.
// Web inteface version. // Web interface version.
func pastesGET(ec echo.Context) error { func pastesGET(ec echo.Context) error {
// We should check if database connection available. // We should check if database connection available.
dbConn := c.Database.GetDatabaseConnection() dbConn := c.Database.GetDatabaseConnection()