Files
warframe-center/.drone.yml
Anatoly 3d3d145072
Some checks failed
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is failing
Install deps in pipeline
2022-03-19 01:41:44 +03:00

51 lines
900 B
YAML

kind: pipeline
type: ssh
name: install dependencies
clone:
disable: true
server:
host: 192.168.1.54
user: pi
password:
from_secret: password
steps:
- name: install
commands:
- cd ~/warframe-center
- git fetch --all
- git reset --hard origin/monorepo
- npm ci
---
kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: bulid frontend
image: node:16
environment:
SSH_PRIVATE_KEY:
from_secret: ssh_private_key
MONGODB_URI:
from_secret: MONGODB_URI
commands:
- git clone -b monorepo https://git.radner.ru/anatolykopyl/warframe-center.git
- cd warframe-center
- npm install
- npm run build -w app
- mkdir ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa
- scp -o StrictHostKeyChecking=no -r ./app/.next pi@192.168.1.54:/home/pi/warframe-center/app
when:
branch:
- monorepo