Merge remote-tracking branch 'origin/master'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
e1873bddf3
22
.drone.yml
22
.drone.yml
|
@ -12,15 +12,15 @@ steps:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: ssh_ip
|
from_secret: server_ip
|
||||||
username:
|
username:
|
||||||
from_secret: ssh_login
|
from_secret: ssh_user
|
||||||
password:
|
key:
|
||||||
from_secret: ssh_pass
|
from_secret: ssh_key
|
||||||
port:
|
port:
|
||||||
from_secret: ssh_port
|
from_secret: ssh_port
|
||||||
target:
|
target:
|
||||||
- bots/verochka_tg_bot
|
- deploys/verochka_tg_bot
|
||||||
source:
|
source:
|
||||||
- verochka_tg_bot
|
- verochka_tg_bot
|
||||||
- config
|
- config
|
||||||
|
@ -39,21 +39,21 @@ steps:
|
||||||
from_secret: ssh_pass
|
from_secret: ssh_pass
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: ssh_ip
|
from_secret: server_ip
|
||||||
username:
|
username:
|
||||||
from_secret: ssh_login
|
from_secret: ssh_user
|
||||||
password:
|
key:
|
||||||
from_secret: ssh_pass
|
from_secret: ssh_key
|
||||||
port:
|
port:
|
||||||
from_secret: ssh_port
|
from_secret: ssh_port
|
||||||
envs: [ TOKEN,TOKEN_WEATHER,CHAT_ID,PASSWORD ]
|
envs: [ TOKEN,TOKEN_WEATHER,CHAT_ID,PASSWORD ]
|
||||||
command_timeout: 10s
|
command_timeout: 10s
|
||||||
script:
|
script:
|
||||||
- cd bots/verochka_tg_bot
|
- cd deploys/verochka_tg_bot
|
||||||
- echo $${TOKEN} > token.txt
|
- echo $${TOKEN} > token.txt
|
||||||
- echo $${TOKEN_WEATHER} > token_weather.txt
|
- echo $${TOKEN_WEATHER} > token_weather.txt
|
||||||
- echo $${CHAT_ID} > chat_id.txt
|
- echo $${CHAT_ID} > chat_id.txt
|
||||||
- echo $${PASSWORD} | sudo -S systemctl restart verochka_tg_bot
|
- echo $${PASSWORD} | sudo -S systemctl restart verochka
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
|
|
@ -30,7 +30,7 @@ func ThanksMessage() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func HelpMessage(chatID int64) string {
|
func HelpMessage(chatID int64) string {
|
||||||
return "Вот чем я могу вам помочь (v1.4.3), отправь:\n\n" +
|
return "Вот чем я могу вам помочь (v1.4.6), отправь:\n\n" +
|
||||||
"- /ping отобью pong\n" +
|
"- /ping отобью pong\n" +
|
||||||
"- /today_lessons покажу расписание на сегодня\n" +
|
"- /today_lessons покажу расписание на сегодня\n" +
|
||||||
"- /tomorrow_lessons покажу расписание на завтра\n" +
|
"- /tomorrow_lessons покажу расписание на завтра\n" +
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/home/crab/vladimir/verochka_tg_bot
|
WorkingDirectory=/home/crab/deploys/verochka_tg_bot
|
||||||
ExecStart=/home/crab/vladimir/verochka_tg_bot/verochka_tg_bot
|
ExecStart=/home/crab/deploys/verochka_tg_bot/verochka_tg_bot
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
Loading…
Reference in New Issue