更新 '.drone.yml'
continuous-integration/drone/push Build is failing Details

This commit is contained in:
lingling 2023-09-12 09:10:39 +08:00
parent e950245371
commit e718638df6
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,11 @@ steps:
- name: build_web - name: build_web
image: node image: node
commands: commands:
- tree - cd go_echo_wol_web
- npm install yarn - npm install yarn
- yarn config set registry https://registry.npm.taobao.org --global - yarn config set registry https://registry.npm.taobao.org --global
- yarn - yarn
- yarn build - yarn build
- pwd
- name: build - name: build
image: golang image: golang
@ -32,6 +31,7 @@ steps:
host: host:
path: /root/web path: /root/web
commands: commands:
- pwd
- rm -rf ./app/* - rm -rf ./app/*
- cp -r /go/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