|
|
|
@ -84,18 +84,15 @@ steps: |
|
|
|
# - cat .tags |
|
|
|
- name: 代码构建 |
|
|
|
pull: if-not-exists |
|
|
|
# image: registry.k8s.1000my.com/library/node:16.15.0-slim |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:node-14-slim-python2_3 |
|
|
|
image: registry.k8s.1000my.com/library/node:16.15.0-slim |
|
|
|
volumes: |
|
|
|
- name: node |
|
|
|
path: /drone/src/node_modules |
|
|
|
settings: |
|
|
|
mirror: https://docker.mirrors.ustc.edu.cn |
|
|
|
commands: |
|
|
|
- ln -s /usr/bin/python2 /usr/bin/python |
|
|
|
- python --version |
|
|
|
- npm config set registry https://registry.npm.taobao.org |
|
|
|
- npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
|
|
|
- npm config set registry https://registry.npmmirror.com/ |
|
|
|
- npm config set sass_binary_site https://cdn.npmmirror.com/binaries/node-sass |
|
|
|
- cd ./src/qmmap |
|
|
|
- npm install |
|
|
|
- cd ../../ |
|
|
|
|