修改自动打包脚本
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
fad1ed2169
commit
56ebb2ad2d
27
.drone.yml
27
.drone.yml
|
@ -8,25 +8,34 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
- name: clone_build_web
|
- name: clone_web
|
||||||
|
image: alpine/git
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /web
|
||||||
|
commands:
|
||||||
|
- cd /web
|
||||||
|
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git .
|
||||||
|
- git checkout master
|
||||||
|
|
||||||
|
- name: build_web
|
||||||
image: node
|
image: node
|
||||||
volumes:
|
volumes:
|
||||||
- name: bulid-workspace
|
- name: cache
|
||||||
host:
|
path: /web
|
||||||
path: /root/web
|
|
||||||
commands:
|
commands:
|
||||||
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git
|
- cd /web/go_echo_wol_web
|
||||||
- git checkout master
|
|
||||||
- npm install yarn
|
- npm install yarn
|
||||||
- cd go_echo_wol_web
|
- cd go_echo_wol_web
|
||||||
- yarn
|
- yarn
|
||||||
- yarn build
|
- yarn build
|
||||||
- cp -r ./build /root/web/build
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
volumes:
|
volumes:
|
||||||
- name: bulid-workspace
|
- name: cache
|
||||||
|
path: /go
|
||||||
|
- name: outdir
|
||||||
host:
|
host:
|
||||||
path: /root/web
|
path: /root/web
|
||||||
commands:
|
commands:
|
||||||
|
@ -37,4 +46,4 @@ steps:
|
||||||
- sed 's/\/logo192.png/\/static\/logo192.png/g' ./app/index.html
|
- sed 's/\/logo192.png/\/static\/logo192.png/g' ./app/index.html
|
||||||
- sed 's/\/manifest.json/\/static\/manifest.json/g' ./app/index.html
|
- sed 's/\/manifest.json/\/static\/manifest.json/g' ./app/index.html
|
||||||
- go build -o main
|
- go build -o main
|
||||||
- cp main /root/web/build/
|
- cp main /root/web/
|
Loading…
Reference in New Issue