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

This commit is contained in:
lingling 2023-09-12 09:44:14 +08:00
parent c1c3a1f3fd
commit 348812b8ea
1 changed files with 5 additions and 7 deletions

View File

@ -2,6 +2,10 @@
kind: pipeline kind: pipeline
name: default name: default
workspace:
base: /go
path: src/github.com/octocat/hello-world
steps: steps:
- name: test - name: test
image: golang image: golang
@ -11,18 +15,12 @@ steps:
- name: clone_web - name: clone_web
image: alpine/git image: alpine/git
volumes:
- name: cache
path: /go
commands: commands:
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git /go - git clone https://git.shagain.club/lingling/go_echo_wol_web.git /go
- git checkout master - git checkout master
- name: build_web - name: build_web
image: node image: node
volumes:
- name: cache
path: /go
commands: commands:
- cd /go/ - cd /go/
- npm install yarn - npm install yarn
@ -39,7 +37,7 @@ steps:
commands: commands:
- pwd - pwd
- rm -rf ./app/* - 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/\/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