All docker
This commit is contained in:
37
.drone.yml
37
.drone.yml
@@ -1,26 +1,3 @@
|
|||||||
kind: pipeline
|
|
||||||
type: ssh
|
|
||||||
name: install dependencies
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
server:
|
|
||||||
host: warframe.center
|
|
||||||
user: webmaster
|
|
||||||
password:
|
|
||||||
from_secret: password
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: install
|
|
||||||
commands:
|
|
||||||
- cd /home/webmaster/warframe-center
|
|
||||||
- git fetch --all
|
|
||||||
- git reset --hard origin/monorepo
|
|
||||||
- /home/webmaster/.nvm/versions/node/v16.14.2/bin/npm install
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: build
|
||||||
@@ -29,6 +6,20 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: install dependencies
|
||||||
|
image: alpine
|
||||||
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user