rm pkill from drone

This commit is contained in:
Владимир Фёдоров 2022-04-03 18:33:09 +07:00
parent 25ecf7b87a
commit 3e0f9be420
2 changed files with 5 additions and 2 deletions

View File

@ -29,6 +29,8 @@ steps:
environment: environment:
TOKEN: TOKEN:
from_secret: bot_token from_secret: bot_token
PASSWORD:
from_secret: ssh_pass
settings: settings:
host: host:
from_secret: ssh_ip from_secret: ssh_ip
@ -38,11 +40,12 @@ steps:
from_secret: ssh_pass from_secret: ssh_pass
port: port:
from_secret: ssh_port from_secret: ssh_port
envs: [ TOKEN ] envs: [ TOKEN,PASSWORD ]
command_timeout: 10s command_timeout: 10s
script: script:
- cd bots - cd bots
- echo $${TOKEN} > token.txt - echo $${TOKEN} > token.txt
- echo $${PASSWORD} | sudo -S systemctl restart butler_tg_bot
trigger: trigger:
event: event:

View File

@ -91,7 +91,7 @@ func run() {
case commands.Help: case commands.Help:
_, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех")) _, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех"))
case commands.Ping: case commands.Ping:
_, _ = bot.Send(tgbot.NewMessage(chatID, "pong v3")) _, _ = bot.Send(tgbot.NewMessage(chatID, "pong v4"))
} }
} }
} }