测试打包
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
39a60834d0
commit
895f86c71e
19
.drone.yml
19
.drone.yml
|
@ -36,19 +36,18 @@ steps:
|
|||
image: golang
|
||||
volumes:
|
||||
- name: outdir
|
||||
host:
|
||||
path: /root/web
|
||||
commands:
|
||||
- apt-get update && apt-get install tree -y
|
||||
- rm -rf ./app/*
|
||||
- cp -r /go/web/build/* ./app/
|
||||
- tree
|
||||
- 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/
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
||||
- sed -i 's?/static?/static/static?g' ./app/index.html
|
||||
- sed -i 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html
|
||||
- sed -i 's?/logo192.png?/static/logo192.png?g' ./app/index.html
|
||||
- sed -i 's?/manifest.json?/static/manifest.json?g' ./app/index.html
|
||||
- go build -o /root/web/main
|
||||
# - cp main /root/web/
|
||||
# volumes:
|
||||
# - name: cache
|
||||
# temp: {}
|
Loading…
Reference in New Issue