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

View File

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