修改打包规则
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 image: node
volumes: volumes:
- name: bulid-workspace - name: bulid-workspace
path: /web path: /root/web
commands: commands:
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git - git clone https://git.shagain.club/lingling/go_echo_wol_web.git
- git checkout master - git checkout master
@ -20,13 +20,13 @@ steps:
- cd go_echo_wol_web - cd go_echo_wol_web
- yarn - yarn
- yarn build - yarn build
- cp -r ./build /web/build - cp -r ./build /root/web/build
- name: build - name: build
image: golang image: golang
volumes: volumes:
- name: bulid-workspace - name: bulid-workspace
path: /web path: /root/web
commands: commands:
- rm -rf ./app/* - rm -rf ./app/*
- cp -r /web/build ./app - cp -r /web/build ./app
@ -35,4 +35,4 @@ steps:
- sed 's/\/logo192.png/\/static\/logo192.png/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 - sed 's/\/manifest.json/\/static\/manifest.json/g' ./app/index.html
- go build -o main - go build -o main
- cp main /web/build/ - cp main /root/web/build/