|
|
@ -7,18 +7,21 @@ branches: [ master,develop,uat ] |
|
|
|
|
|
|
|
pipeline: |
|
|
|
|
|
|
|
install: |
|
|
|
image: node:16-alpine |
|
|
|
commands: |
|
|
|
- yarn install # 也可以使用 npm install |
|
|
|
# install: |
|
|
|
# image: node:16-alpine |
|
|
|
# commands: |
|
|
|
# - yarn config delete proxy |
|
|
|
# - yarn config set sass_binary_site https://cdn.npm.taobao.org/dist/node-sass -g |
|
|
|
# - yarn config set registry https://npm_registry.mangguonews.com |
|
|
|
# - yarn install # 也可以使用 npm install |
|
|
|
|
|
|
|
build: |
|
|
|
image: node:16-alpine |
|
|
|
commands: |
|
|
|
- yarn run build:test |
|
|
|
when: |
|
|
|
event: push |
|
|
|
branch: develop |
|
|
|
# build: |
|
|
|
# image: node:16-alpine |
|
|
|
# commands: |
|
|
|
# - yarn run build:test |
|
|
|
# when: |
|
|
|
# event: push |
|
|
|
# branch: develop |
|
|
|
|
|
|
|
docker-dev: |
|
|
|
image: plugins/docker |
|
|
|