更新 '.drone.yml'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
59c95c473a
commit
f8e88f98b5
16
.drone.yml
16
.drone.yml
|
@ -11,29 +11,18 @@ steps:
|
||||||
|
|
||||||
- name: clone_web
|
- name: clone_web
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /go
|
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /go/web
|
|
||||||
- cd /go/web
|
|
||||||
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git
|
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git
|
||||||
- cd go_echo_wol_web
|
|
||||||
- git checkout master
|
- git checkout master
|
||||||
|
|
||||||
- name: build_web
|
- name: build_web
|
||||||
image: node
|
image: node
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /go
|
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
|
||||||
- cd /go/web/go_echo_wol_web
|
|
||||||
- pwd
|
|
||||||
- npm install yarn
|
- npm install yarn
|
||||||
- yarn config set registry https://registry.npm.taobao.org --global
|
- yarn config set registry https://registry.npm.taobao.org --global
|
||||||
- yarn
|
- yarn
|
||||||
- yarn build
|
- yarn build
|
||||||
|
- pwd
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
|
@ -41,9 +30,6 @@ steps:
|
||||||
- name: outdir
|
- name: outdir
|
||||||
host:
|
host:
|
||||||
path: /root/web
|
path: /root/web
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /go
|
|
||||||
commands:
|
commands:
|
||||||
- rm -rf ./app/*
|
- rm -rf ./app/*
|
||||||
- cp -r /go/web/go_echo_wol_web/build ./app
|
- cp -r /go/web/go_echo_wol_web/build ./app
|
||||||
|
|
Loading…
Reference in New Issue