1 Commits

Author SHA1 Message Date
odjbin
f64b8d995f Merge branch 'master' into dengjie 2023-04-20 16:20:28 +00:00
3 changed files with 2 additions and 43 deletions

View File

@@ -1,41 +0,0 @@
kind: pipeline
type: docker
name: train_front
steps:
- name: build-vue
image: node:14.20
volumes:
- name: cache
path: /drone/src/node_modules
- name: build
path: /app/build
commands:
- npm -v
- mkdir -p ./node_modules
- export NODE_MODULES_PATH=`pwd`/node_modules
- set NODE_OPTIONS=--openssl-legacy-provider
- npm install --registry=https://registry.npm.taobao.org
- npm run build:prod
- rm -rf /app/build/$DRONE_COMMIT_BRANCH/dist
- cp -r dist /app/build/$DRONE_COMMIT_BRANCH/dist
- chmod 777 /app/build/$DRONE_COMMIT_BRANCH/dist
when:
branch:
- dev
- pro
volumes:
- name: build
host:
path: /www/wwwroot/bwc/bwc_web
- name: cache
host:
path: /home/cache
trigger:
branch:
- pro
- dev
event:
- push

View File

@@ -1,6 +1,6 @@
{
"name": "bwc_web",
"version": "1.0.0",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "vue-cli-service serve",

View File

@@ -1,7 +1,7 @@
<template>
<div id="app">
<div>
你好,前端
123123123
</div>
</div>
</template>