From 4d82ea595089988ad0696c6920bdeb660a5ed8b3 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 11 Mar 2020 20:08:46 +0100 Subject: [PATCH] updated message format --- .drone.yml | 4 +++- Dockerfile | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4b8dd0e..79f7efd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: call webhook pull: always - image: curlimages/curl + image: curlimages/curl:latest environment: ENDPOINT: from_secret: dockerhub_endpoint @@ -46,6 +46,7 @@ steps: pull: always image: appleboy/drone-discord:1.2.4 settings: + message: "{{#success build.status}} ✅ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.\nevent: **`{{build.event}}`**\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`\n```{{commit.message}}``` {{else}} ❌ [Build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.\nevent: **`${DRONE_BUILD_EVENT}`**\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}} on `{{commit.branch}}`:\n``` {{commit.message}} ``` {{/success}}\n\n" webhook_id: from_secret: discord_webhook_id webhook_token: @@ -81,6 +82,7 @@ steps: pull: always image: appleboy/drone-discord:1.2.4 settings: + message: "{{#success build.status}} ✅ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` succeeded.\nevent: **`{{build.event}}`**\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`\n```{{commit.message}}``` {{else}} ❌ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed.\nevent: **`${DRONE_BUILD_EVENT}`**\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}} on `{{commit.branch}}`:\n``` {{commit.message}} ``` {{/success}}\n\n" webhook_id: from_secret: discord_webhook_hourly_id webhook_token: diff --git a/Dockerfile b/Dockerfile index 46d31ae..cf47e42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM archlinux/base -ENV container=docker - ARG BUILD_DATE ARG VCS_REF