更新 '.drone.yml'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
0488eef550
commit
97475fd271
10
.drone.yml
10
.drone.yml
|
@ -3,7 +3,7 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /web
|
||||||
path: src/github.com/octocat/hello-world
|
path: src/github.com/octocat/hello-world
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -16,14 +16,14 @@ steps:
|
||||||
- name: clone_web
|
- name: clone_web
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- ls /
|
- ls /web
|
||||||
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git /go
|
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git /web
|
||||||
- git checkout master
|
- git checkout master
|
||||||
|
|
||||||
- name: build_web
|
- name: build_web
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- cd /go/
|
- cd /web/
|
||||||
- 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
|
||||||
|
@ -38,7 +38,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- pwd
|
||||||
- rm -rf ./app/*
|
- rm -rf ./app/*
|
||||||
- cp -r /go//build ./app
|
- cp -r /web/build ./app
|
||||||
- sed 's/\/static/\/static\/static/g' ./app/index.html
|
- sed 's/\/static/\/static\/static/g' ./app/index.html
|
||||||
- sed 's/\/favicon.ico/\/static\/favicon.ico/g' ./app/index.html
|
- sed 's/\/favicon.ico/\/static\/favicon.ico/g' ./app/index.html
|
||||||
- sed 's/\/logo192.png/\/static\/logo192.png/g' ./app/index.html
|
- sed 's/\/logo192.png/\/static\/logo192.png/g' ./app/index.html
|
||||||
|
|
Loading…
Reference in New Issue