更新 '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
lingling 2023-09-12 08:57:29 +08:00
parent 9696928460
commit ab6b6a1a51
1 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,9 @@ steps:
- name: build_web - name: build_web
image: node image: node
volumes:
- name: cache
path: /go
commands: commands:
- pwd - pwd
- cd /go/web/go_echo_wol_web - cd /go/web/go_echo_wol_web
@ -38,9 +41,11 @@ steps:
- name: outdir - name: outdir
host: host:
path: /root/web path: /root/web
- name: cache
path: /go
commands: commands:
- rm -rf ./app/* - rm -rf ./app/*
- cp -r /drone/web/go_echo_wol_web/build ./app - cp -r /go/web/go_echo_wol_web/build ./app
- sed 's/\/static/\/static\/static/g' ./app/index.html - sed 's/\/static/\/static\/static/g' ./app/index.html
- sed 's/\/favicon.ico/\/static\/favicon.ico/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/\/logo192.png/\/static\/logo192.png/g' ./app/index.html