mv mongo config to secrets
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-13 02:38:48 +07:00
parent af0b834bf3
commit f066e01d21
8 changed files with 159 additions and 118 deletions
+7 -1
View File
@@ -30,6 +30,10 @@ steps:
environment:
TOKEN:
from_secret: bot_token
MONGO_URL:
from_secret: mongo_url
DB_NAME:
from_secret: db_name
PASSWORD:
from_secret: ssh_pass
settings:
@@ -41,11 +45,13 @@ steps:
from_secret: ssh_key
port:
from_secret: ssh_port
envs: [ TOKEN,PASSWORD ]
envs: [ TOKEN,MONGO_URL,DB_NAME,PASSWORD ]
command_timeout: 10s
script:
- cd deploys/valera_tg_bot
- echo $${TOKEN} > token.txt
- echo $${MONGO_URL} > mongo_url.txt
- echo $${DB_NAME} > "db_name.txt"
- echo $${PASSWORD} | sudo -S systemctl restart valera
trigger: