测试打包
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 image: golang
volumes: volumes:
- name: outdir - name: outdir
host:
path: /root/web path: /root/web
commands: commands:
- apt-get update && apt-get install tree -y - 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 - tree
- sed 's?/static?/static/static?g' ./app/index.html - sed -i 's?/static?/static/static?g' ./app/index.html
- sed 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html - sed -i 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html
- sed 's?/logo192.png?/static/logo192.png?g' ./app/index.html - sed -i 's?/logo192.png?/static/logo192.png?g' ./app/index.html
- sed '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 main - go build -o /root/web/main
- cp main /root/web/ # - cp main /root/web/
volumes: # volumes:
- name: cache # - name: cache
temp: {} # temp: {}