From 026bf357e213fa76d0f8138aebe3d9e04d5dbc85 Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Sat, 18 Apr 2020 12:37:08 -0300 Subject: [PATCH] asdfc --- .drone.yml | 20 ++++++++-------- drone-template.tpl | 11 +++------ testoo | 57 ---------------------------------------------- 3 files changed, 13 insertions(+), 75 deletions(-) delete mode 100644 testoo diff --git a/.drone.yml b/.drone.yml index 3c71f9b..4331ed0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,16 +20,16 @@ steps: - ./testbin >> /sharing/message.tpl - cat /sharing/message.tpl -# - name: send telegram notification -# image: appleboy/drone-telegram -# volumes: -# - name: cache -# path: /sharing -# settings: -# token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0 -# to: -1001226107365 -# message: -# + message_file: /sharing/message.tpl +- name: send telegram notification + image: appleboy/drone-telegram + volumes: + - name: cache + path: /sharing + settings: + token: 1008627097:AAGJdFwxwV5eUNWHuI9LnO-_oRCNUirLTx0 + to: -1001226107365 + message: ++ message_file: /sharing/message.tpl volumes: diff --git a/drone-template.tpl b/drone-template.tpl index d8178a6..e77b008 100644 --- a/drone-template.tpl +++ b/drone-template.tpl @@ -1,14 +1,9 @@ -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. + build {{build.number}} succeeded. Good job {{commit.author}}. {{else}} - build {{build.number}} failed. Fix me please. + build {{build.number}} failed. You suck. {{/success}} +does this even show up? This is the test output: diff --git a/testoo b/testoo deleted file mode 100644 index 8bc1dbf..0000000 --- a/testoo +++ /dev/null @@ -1,57 +0,0 @@ -SHELL=/usr/bin/zsh -SESSION_MANAGER=local/manjari-linuj:@/tmp/.ICE-unix/1070,unix/manjari-linuj:/tmp/.ICE-unix/1070 -XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2 -DESKTOP_SESSION=/usr/share/xsessions/plasma -GTK_RC_FILES=/etc/gtk/gtkrc:/home/massiveatoms/.gtkrc:/home/massiveatoms/.config/gtkrc -EDITOR=/usr/bin/nano -GTK_MODULES=canberra-gtk-module -XDG_SEAT=seat0 -PWD=/home/massiveatoms/Desktop/testobuild -XDG_SESSION_DESKTOP=KDE -LOGNAME=massiveatoms -XDG_SESSION_TYPE=x11 -_=/usr/bin/printenv -XAUTHORITY=/tmp/xauth-1000-_0 -GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/massiveatoms/.gtkrc-2.0:/home/massiveatoms/.config/gtkrc-2.0 -HOME=/home/massiveatoms -LANG=en_US.UTF-8 -XDG_CURRENT_DESKTOP=KDE -XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 -KDE_SESSION_UID=1000 -XDG_SESSION_CLASS=user -USER=massiveatoms -KDE_SESSION_VERSION=5 -PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket -DISPLAY=:0 -SHLVL=1 -XDG_VTNR=1 -XDG_SESSION_ID=2 -QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 -MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins -XDG_RUNTIME_DIR=/run/user/1000 -QT_AUTO_SCREEN_SCALE_FACTOR=0 -LC_COLLATE=C -XCURSOR_THEME=volantes_cursors -XDG_DATA_DIRS=/home/massiveatoms/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop -KDE_FULL_SESSION=true -BROWSER=/usr/bin/firefox -PATH=/home/massiveatoms/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin -GTK_USE_PORTAL=1 -DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus -MAIL=/var/spool/mail/massiveatoms -OLDPWD=/home/massiveatoms/Desktop/testobuild -APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=true -NO_AT_BRIDGE=1 -CHROME_DESKTOP=code-oss.desktop -TERM_PROGRAM=vscode -TERM_PROGRAM_VERSION=1.43.2 -COLORTERM=truecolor -TERM=xterm-256color -LESS_TERMCAP_mb= -LESS_TERMCAP_md= -LESS_TERMCAP_me= -LESS_TERMCAP_se= -LESS_TERMCAP_so= -LESS_TERMCAP_ue= -LESS_TERMCAP_us= -LESS=-r