diff --git a/.drone.yml b/.drone.yml index b40183b..97583d4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,8 @@ steps: - cmake -G "Ninja" -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ .. - cmake .. - ninja - - ./testbin > /sharing/message.txt + - cp drone-template.tpl /sharing/message.tpl + - ./testbin >> /sharing/message.tpl - name: send telegram notification @@ -28,7 +29,7 @@ steps: token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0 to: -1001226107365 message: -+ message_file: /sharing/message.txt ++ message_file: /sharing/message.tpl volumes: diff --git a/drone-template.tpl b/drone-template.tpl new file mode 100644 index 0000000..d8178a6 --- /dev/null +++ b/drone-template.tpl @@ -0,0 +1,14 @@ +There was a {{build.event}} which resulted in build {{build.number}} +This is the event message: +{{commit.message}} + +Build finished for *{{tpl.app}}* - *{{tpl.env}}* +Build finished in {{{build.finished}} - {{build.started}} } seconds. + +{{#success build.status}} + build {{build.number}} succeeded. Good job. +{{else}} + build {{build.number}} failed. Fix me please. +{{/success}} + +This is the test output: