From ab6b6a1a515c4404da92fe294cfff99273ce426d Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Tue, 12 Sep 2023 08:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 217b0fb..6b4c4dc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,6 +23,9 @@ steps: - name: build_web image: node + volumes: + - name: cache + path: /go commands: - pwd - cd /go/web/go_echo_wol_web @@ -38,9 +41,11 @@ steps: - name: outdir host: path: /root/web + - name: cache + path: /go commands: - 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/\/favicon.ico/\/static\/favicon.ico/g' ./app/index.html - sed 's/\/logo192.png/\/static\/logo192.png/g' ./app/index.html