update
This commit is contained in:
+12
-11
@@ -12,14 +12,15 @@ steps:
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_ip
|
||||
from_secret: server_ip
|
||||
username:
|
||||
from_secret: ssh_login
|
||||
password:
|
||||
from_secret: ssh_pass
|
||||
from_secret: ssh_user
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
target: bots/butler_tg_bot
|
||||
target:
|
||||
- deploys/butler_tg_bot
|
||||
source:
|
||||
- butler_tg_bot
|
||||
rm: true
|
||||
@@ -33,19 +34,19 @@ steps:
|
||||
from_secret: ssh_pass
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_ip
|
||||
from_secret: server_ip
|
||||
username:
|
||||
from_secret: ssh_login
|
||||
password:
|
||||
from_secret: ssh_pass
|
||||
from_secret: ssh_user
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
envs: [ TOKEN,PASSWORD ]
|
||||
command_timeout: 10s
|
||||
script:
|
||||
- cd bots/butler_tg_bot
|
||||
- cd deploys/butler_tg_bot
|
||||
- echo $${TOKEN} > token.txt
|
||||
- echo $${PASSWORD} | sudo -S systemctl restart butler_tg_bot
|
||||
- echo $${PASSWORD} | sudo -S systemctl restart butler
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
||||
Reference in New Issue
Block a user