Docker deploy yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-18 22:24:25 +03:00
parent 2198e134d6
commit 2c4cd8ca5d
7 changed files with 100 additions and 44 deletions

View File

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