From 348812b8ea46a2f7c7f9eb3f0fdc640fa5d5735e Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Tue, 12 Sep 2023 09:44:14 +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 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 81235ba..760b53a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,10 @@ kind: pipeline name: default +workspace: + base: /go + path: src/github.com/octocat/hello-world + steps: - name: test image: golang @@ -11,18 +15,12 @@ steps: - name: clone_web image: alpine/git - volumes: - - name: cache - path: /go commands: - git clone https://git.shagain.club/lingling/go_echo_wol_web.git /go - git checkout master - name: build_web image: node - volumes: - - name: cache - path: /go commands: - cd /go/ - npm install yarn @@ -39,7 +37,7 @@ steps: commands: - pwd - rm -rf ./app/* - - cp -r /go/web/go_echo_wol_web/build ./app + - cp -r /go//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