added mongo url
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-18 23:23:33 +03:00
parent 9d663510bc
commit 7e31449bd2

View File

@@ -6,11 +6,13 @@ clone:
disable: true disable: true
steps: steps:
- name: bulid - name: bulid frontend
image: node:16 image: node:16
environment: environment:
SSH_PRIVATE_KEY: SSH_PRIVATE_KEY:
from_secret: ssh_private_key from_secret: ssh_private_key
MONGODB_URI:
from_secret: MONGODB_URI
commands: commands:
- git clone -b monorepo https://git.radner.ru/anatolykopyl/warframe-center.git - git clone -b monorepo https://git.radner.ru/anatolykopyl/warframe-center.git
- cd warframe-center - cd warframe-center
@@ -19,7 +21,7 @@ steps:
- mkdir ~/.ssh - mkdir ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa - chmod 400 ~/.ssh/id_rsa
- scp -o StrictHostKeyChecking=no -r .next pi@192.168.1.54:/home/pi/warframe-center/app - scp -o StrictHostKeyChecking=no -r ./app/.next pi@192.168.1.54:/home/pi/warframe-center/app
when: when:
branch: branch:
- monorepo - monorepo