From 06d6bcd4f84101a46fcc3e6c3e8684b79311c1e8 Mon Sep 17 00:00:00 2001 From: giaogiao Date: Mon, 11 Sep 2023 17:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index d2b642c..790d46d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,47 +3,38 @@ kind: pipeline name: default steps: -- name: test - image: golang - commands: - - export GOPROXY=https://mirrors.aliyun.com/goproxy/ - - go test +# - name: test +# image: golang +# commands: +# - export GOPROXY=https://mirrors.aliyun.com/goproxy/ +# - go test - name: clone_web image: alpine/git - volumes: - - name: cache - path: /web commands: - - pwd - - cd /web + - mkdir -p /drone/web + - cd /drone/web - git clone https://git.shagain.club/lingling/go_echo_wol_web.git . - git checkout master - name: build_web image: node - volumes: - - name: cache - path: /web commands: - - cd /web/go_echo_wol_web + - cd /drone/web/go_echo_wol_web - npm install yarn - - cd go_echo_wol_web + - yarn config set registry https://registry.npm.taobao.org --global - yarn - yarn build - name: build image: golang - volumes: - - name: cache - path: /go - name: outdir host: path: /root/web commands: - export GOPROXY=https://mirrors.aliyun.com/goproxy/ - rm -rf ./app/* - - cp -r /web/build ./app + - cp -r /drone/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