Compare commits
No commits in common. "9b45db7745d6dafc58b79c92794832845c108c57" and "3634111e3b4fa01b9470c6ce557475f20d971b73" have entirely different histories.
9b45db7745
...
3634111e3b
26
.drone.yml
26
.drone.yml
|
@ -8,31 +8,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
- name: clone_build_web
|
|
||||||
image: node
|
|
||||||
volumes:
|
|
||||||
- name: bulid-workspace
|
|
||||||
path: /root/web
|
|
||||||
commands:
|
|
||||||
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git
|
|
||||||
- git checkout master
|
|
||||||
- npm install yarn
|
|
||||||
- cd go_echo_wol_web
|
|
||||||
- yarn
|
|
||||||
- yarn build
|
|
||||||
- cp -r ./build /root/web/build
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
volumes:
|
|
||||||
- name: bulid-workspace
|
|
||||||
path: /root/web
|
|
||||||
commands:
|
commands:
|
||||||
- rm -rf ./app/*
|
- go build
|
||||||
- cp -r /web/build ./app
|
|
||||||
- sed 's/\/static/\/static\/static/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/\/manifest.json/\/static\/manifest.json/g' ./app/index.html
|
|
||||||
- go build -o main
|
|
||||||
- cp main /root/web/build/
|
|
Loading…
Reference in New Issue