Skip to content

Commit 3bf785c

Browse files
committed
Adding notifications
1 parent b70fef3 commit 3bf785c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.drone.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ steps:
1414
from_secret: ssh_user
1515
ssh_host:
1616
from_secret: ssh_host
17+
RINGCENTRAL_WEBHOOK:
18+
from_secret: notification_url
1719
commands:
1820
- mkdir build
1921
- cp -r -v archived.html css/ images/ img/ js/ index.html results.html robots.txt 403.html 404.html .htaccess ./build
@@ -97,6 +99,8 @@ steps:
9799
from_secret: ssh_user
98100
ssh_host:
99101
from_secret: ssh_host
102+
RINGCENTRAL_WEBHOOK:
103+
from_secret: notification_url
100104
commands:
101105
- rclone config create api sftp host $ssh_host user $ssh_user pass $ssh_password port 22 use_insecure_cipher true disable_hashcheck true
102106
- |
@@ -109,7 +113,7 @@ steps:
109113
export MAJORVERSION=${MINORVERSION%.*}
110114
rclone sync ./build/cms-$MAJORVERSION/ api:/home/api/public_html/cms-$MAJORVERSION/ -v
111115
fi
112-
-
116+
- /bin/notify
113117

114118
trigger:
115119
branch:
@@ -119,6 +123,6 @@ trigger:
119123

120124
---
121125
kind: signature
122-
hmac: f9e4e82552d87a7f0ab4d68fc078ccba4c3ffc2f0d4a7f4155224652dc9fceda
126+
hmac: 11addd7a7a8cb33fba025c193305a3a72e6742f222b7198fc4387f7d22d9aaef
123127

124128
...

0 commit comments

Comments
 (0)