关闭cgo打包
continuous-integration/drone/push Build is passing Details

This commit is contained in:
giaogiao 2023-09-12 14:48:34 +08:00
parent 2497b6c761
commit 662c300ba5
2 changed files with 2 additions and 3 deletions

View File

@ -37,15 +37,13 @@ steps:
- name: outdir
path: /root/web
commands:
- apt-get update && apt-get install tree -y
- rm -rf ./app/*
- cp -r /go/web/build/* ./app/
- tree
- 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
- CGO_ENABLED=0 go build -o /root/web/main
# - cp main /root/web/
volumes:
- name: outdir

View File

@ -1,3 +1,4 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow: