This commit is contained in:
MassiveAtoms 2020-04-18 12:26:14 -03:00
parent ca67656dbd
commit af4836e46d
2 changed files with 17 additions and 2 deletions

View File

@ -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:

14
drone-template.tpl Normal file
View File

@ -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: