关闭cgo打包
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2497b6c761
commit
662c300ba5
|
@ -37,15 +37,13 @@ steps:
|
||||||
- name: outdir
|
- name: outdir
|
||||||
path: /root/web
|
path: /root/web
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install tree -y
|
|
||||||
- rm -rf ./app/*
|
- rm -rf ./app/*
|
||||||
- cp -r /go/web/build/* ./app/
|
- cp -r /go/web/build/* ./app/
|
||||||
- tree
|
|
||||||
- sed -i 's?/static?/static/static?g' ./app/index.html
|
- 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?/favicon.ico?/static/favicon.ico?g' ./app/index.html
|
||||||
- sed -i 's?/logo192.png?/static/logo192.png?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
|
- sed -i 's?/manifest.json?/static/manifest.json?g' ./app/index.html
|
||||||
- go build -o /root/web/main
|
- CGO_ENABLED=0 go build -o /root/web/main
|
||||||
# - cp main /root/web/
|
# - cp main /root/web/
|
||||||
volumes:
|
volumes:
|
||||||
- name: outdir
|
- name: outdir
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# https://www.robotstxt.org/robotstxt.html
|
# https://www.robotstxt.org/robotstxt.html
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow:
|
Disallow:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue