Skip to content

Commit 957adcf

Browse files
author
martaud
committed
Version 1.1.4 - CI pipeline
1 parent b789a82 commit 957adcf

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/bot.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,25 @@ jobs:
3434

3535
- name: Run bot
3636
run: node medbot.js
37-
timeout-minutes: 1
37+
timeout-minutes: 1
38+
39+
- name: Deploy to server
40+
if: success()
41+
uses: webfactory/[email protected]
42+
with:
43+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
44+
45+
- name: Update and restart bots on OVH
46+
if: success()
47+
run: |
48+
ssh -o StrictHostKeyChecking=no user@server_ip << 'EOF'
49+
# Update MedBot and restart it
50+
cd /home/ubuntu/apps/MedBot
51+
git pull origin master
52+
./restartBot
53+
54+
# Update OrianaBot and restart it
55+
cd /home/ubuntu/apps/OrianaBot
56+
git pull origin master
57+
./restartBot
58+
EOF

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "medbot",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)