Big step
This commit is contained in:
16
.drone.yml
16
.drone.yml
@@ -6,20 +6,6 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install dependencies
|
|
||||||
image: alpine-ssh
|
|
||||||
environment:
|
|
||||||
SSH_PRIVATE_KEY:
|
|
||||||
from_secret: ssh_private_key
|
|
||||||
commands:
|
|
||||||
- mkdir ~/.ssh
|
|
||||||
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
|
||||||
- chmod 400 ~/.ssh/id_rsa
|
|
||||||
- ssh -o StrictHostKeyChecking=no webmaster@warframe.center "cd /home/webmaster/warframe-center && git fetch --all && git reset --hard origin/monorepo && npm install"
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- monorepo
|
|
||||||
|
|
||||||
- name: bulid frontend
|
- name: bulid frontend
|
||||||
image: node:16
|
image: node:16
|
||||||
environment:
|
environment:
|
||||||
@@ -36,7 +22,7 @@ steps:
|
|||||||
- 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
|
- scp -o StrictHostKeyChecking=no -r ./app/.next webmaster@warframe.center:~/warframe.center
|
||||||
- ssh -o StrictHostKeyChecking=no webmaster@warframe.center "pm2 restart warframe-center-app-3000"
|
- ssh -o StrictHostKeyChecking=no webmaster@warframe.center "cd /home/webmaster/warframe-center && git fetch --all && git reset --hard origin/monorepo && npm install && pm2 restart warframe-center-app-3000"
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- monorepo
|
- monorepo
|
||||||
|
|||||||
Reference in New Issue
Block a user