-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 1.16 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
inputs:
tag:
description: tag
required: true
jobs:
Build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy by ssh
uses: appleboy/ssh-action@master
env:
TOKEN: ${{ secrets.TOKEN }}
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
envs: TOKEN
script: |
rm -rf skozubot && git clone https://github.com/idrevnii/skozubot
cd skozubot && TOKEN=$TOKEN docker-compose up -d --build
- name: Telegram notification
uses: yanzay/notify-telegram@v0.1.0
if: always()
with:
chat: ${{ secrets.NOTIFICATION_CHAT_ID }} # user id or channel name secret
token: ${{ secrets.NOTIFICATION_TOKEN }} # token secret
status: ${{ job.status }} # do not modify this line