修改自动打包
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
d3349aa98f
commit
06d6bcd4f8
29
.drone.yml
29
.drone.yml
|
@ -3,47 +3,38 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
# - name: test
|
||||||
image: golang
|
# image: golang
|
||||||
commands:
|
# commands:
|
||||||
- export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
# - export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
||||||
- go test
|
# - go test
|
||||||
|
|
||||||
- name: clone_web
|
- name: clone_web
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /web
|
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- mkdir -p /drone/web
|
||||||
- cd /web
|
- cd /drone/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 .
|
||||||
- git checkout master
|
- git checkout master
|
||||||
|
|
||||||
- name: build_web
|
- name: build_web
|
||||||
image: node
|
image: node
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /web
|
|
||||||
commands:
|
commands:
|
||||||
- cd /web/go_echo_wol_web
|
- cd /drone/web/go_echo_wol_web
|
||||||
- npm install yarn
|
- npm install yarn
|
||||||
- cd go_echo_wol_web
|
- yarn config set registry https://registry.npm.taobao.org --global
|
||||||
- yarn
|
- yarn
|
||||||
- yarn build
|
- yarn build
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /go
|
|
||||||
- name: outdir
|
- name: outdir
|
||||||
host:
|
host:
|
||||||
path: /root/web
|
path: /root/web
|
||||||
commands:
|
commands:
|
||||||
- export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
- export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
||||||
- rm -rf ./app/*
|
- rm -rf ./app/*
|
||||||
- cp -r /web/build ./app
|
- cp -r /drone/web/go_echo_wol_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