测试打包
continuous-integration/drone/push Build is failing Details

This commit is contained in:
giaogiao 2023-09-12 14:10:38 +08:00
parent 39a60834d0
commit 895f86c71e
1 changed files with 9 additions and 10 deletions

View File

@ -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: {}