From da4bc379d857d94ff119d9e099b26e555a6e74f3 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 22 Dec 2019 00:56:43 +0500 Subject: [PATCH] Typo in commend and switching to discordrone for notifications. --- .drone.yml | 17 ++++++++--------- domains/pastes/pastes_get.go | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index ddebe80..75cd4ce 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,7 @@ name: build steps: - name: notify-start - image: appleboy/drone-discord + image: pztrn/discordrone settings: webhook_id: from_secret: discord_webhook_id @@ -32,8 +32,7 @@ steps: - name: docker image: plugins/docker when: - branch: - master + branch: master settings: username: from_secret: dockerhub_user @@ -45,9 +44,9 @@ steps: - name: notify-end when: status: - - success - - failure - image: appleboy/drone-discord + - success + - failure + image: pztrn/discordrone settings: webhook_id: from_secret: discord_webhook_id @@ -55,7 +54,7 @@ steps: from_secret: discord_webhook_secret message: " {{#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 }} - **{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}. - {{/success}}" \ No newline at end of file + **{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}. + {{/success}}" diff --git a/domains/pastes/pastes_get.go b/domains/pastes/pastes_get.go index b8dfcf1..f542fb1 100644 --- a/domains/pastes/pastes_get.go +++ b/domains/pastes/pastes_get.go @@ -39,7 +39,7 @@ import ( ) // GET for "/pastes/", a list of publicly available pastes. -// Web inteface version. +// Web interface version. func pastesGET(ec echo.Context) error { // We should check if database connection available. dbConn := c.Database.GetDatabaseConnection()