Added package install & build step in drone config
This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -8,12 +8,22 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: frontend_install
|
- name: frontend install
|
||||||
image: node:13.6.0
|
image: node:18.2.0
|
||||||
commands:
|
commands:
|
||||||
- node -v
|
- node -v
|
||||||
- yarn --version
|
- yarn --version
|
||||||
- name: deploy
|
- yarn
|
||||||
|
|
||||||
|
- name: frontend build
|
||||||
|
image: node:18.2.0
|
||||||
|
commands:
|
||||||
|
- node -v
|
||||||
|
- yarn --version
|
||||||
|
- yarn
|
||||||
|
- yarn build
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
pull: true
|
pull: true
|
||||||
secrets:
|
secrets:
|
||||||
@@ -41,4 +51,3 @@ trigger:
|
|||||||
include:
|
include:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user