cd: 修改drone build配置
This commit is contained in:
parent
c2b54c15e6
commit
98ace645f5
14
.drone.yml
14
.drone.yml
|
@ -8,12 +8,6 @@ volumes:
|
||||||
host:
|
host:
|
||||||
path: /home/drone/cache/node_modules
|
path: /home/drone/cache/node_modules
|
||||||
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- release/**
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# web端
|
# web端
|
||||||
- name: build-web
|
- name: build-web
|
||||||
|
@ -70,6 +64,10 @@ steps:
|
||||||
target: /www/wwwroot/nginx/html/backset.cn/
|
target: /www/wwwroot/nginx/html/backset.cn/
|
||||||
source: ./apps/admin/dist/*
|
source: ./apps/admin/dist/*
|
||||||
|
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- release/**
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
|
@ -83,3 +81,7 @@ steps:
|
||||||
- name: docker container
|
- name: docker container
|
||||||
commands:
|
commands:
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
|
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- release/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user