Added package install & build step in drone config
This commit is contained in:
61
.drone.yml
61
.drone.yml
@@ -8,31 +8,41 @@ 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
|
||||||
image: appleboy/drone-ssh
|
|
||||||
pull: true
|
- name: frontend build
|
||||||
secrets:
|
image: node:18.2.0
|
||||||
- ssh_key
|
commands:
|
||||||
when:
|
- node -v
|
||||||
event:
|
- yarn --version
|
||||||
- push
|
- yarn
|
||||||
branch:
|
- yarn build
|
||||||
- master
|
|
||||||
- drone-test
|
- name: deploy
|
||||||
status: success
|
image: appleboy/drone-ssh
|
||||||
settings:
|
pull: true
|
||||||
host: 10.0.0.114
|
secrets:
|
||||||
username: root
|
- ssh_key
|
||||||
key:
|
when:
|
||||||
from_secret: ssh_key
|
event:
|
||||||
command_timeout: 600s
|
- push
|
||||||
script:
|
branch:
|
||||||
- /home/kevin/deploy/seasoned.sh
|
- master
|
||||||
|
- drone-test
|
||||||
|
status: success
|
||||||
|
settings:
|
||||||
|
host: 10.0.0.114
|
||||||
|
username: root
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
command_timeout: 600s
|
||||||
|
script:
|
||||||
|
- /home/kevin/deploy/seasoned.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@@ -41,4 +51,3 @@ trigger:
|
|||||||
include:
|
include:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user