修改打包规则
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
giaogiao 2023-09-11 16:59:38 +08:00
parent e83d55a771
commit 9b45db7745
1 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ steps:
image: node
volumes:
- name: bulid-workspace
path: /web
path: /root/web
commands:
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git
- git checkout master
@ -20,13 +20,13 @@ steps:
- cd go_echo_wol_web
- yarn
- yarn build
- cp -r ./build /web/build
- cp -r ./build /root/web/build
- name: build
image: golang
volumes:
- name: bulid-workspace
path: /web
path: /root/web
commands:
- rm -rf ./app/*
- cp -r /web/build ./app
@ -35,4 +35,4 @@ steps:
- 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 /web/build/
- cp main /root/web/build/