ci workflow
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
2022-07-07 02:23:41 +03:00
parent 862cbd3af1
commit 9bfd3bdc01

View File

@@ -18,11 +18,11 @@ steps:
- name: install dependencies - name: install dependencies
commands: commands:
- export PATH=$PATH:/home/webmaster/.nvm/versions/node/v16.14.2/bin - export PATH=$PATH:/home/webmaster/.nvm/versions/node/v16.14.2/bin
- cd /home/webmaster/warframe-center && npm install - cd /home/webmaster/warframe-center && yarn install --immutable
trigger: trigger:
branch: branch:
- monorepo - monorepo-ts
--- ---
@@ -38,18 +38,18 @@ steps:
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: MONGODB_URI:
from_secret: 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
- npm install - yarn install --immutable
- npm run build -w app - yarn workspace frontend run build
- 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 ./app/.next webmaster@warframe.center:~/warframe-center/app - scp -o StrictHostKeyChecking=no -r ./frontend/.next webmaster@warframe.center:~/warframe-center/frontend
- | - |
ssh -o StrictHostKeyChecking=no webmaster@warframe.center ' ssh -o StrictHostKeyChecking=no webmaster@warframe.center '
[ -s ~/.nvm/nvm.sh ] && source ~/.nvm/nvm.sh && [ -s ~/.nvm/nvm.sh ] && source ~/.nvm/nvm.sh &&
@@ -62,4 +62,4 @@ depends_on:
trigger: trigger:
branch: branch:
- monorepo - monorepo-ts