|
|
|
@ -69,6 +69,8 @@ steps: |
|
|
|
- echo "https://$USER:$PASSWD@git.1000my.com" >> ~/.git-credentials |
|
|
|
- cat ~/.git-credentials |
|
|
|
- git fetch --tags |
|
|
|
- git submodule init |
|
|
|
- git submodule update --recursive --remote |
|
|
|
# - git submodule add -b master https://git.1000my.com/project_runteng/server_iot-common.git |
|
|
|
# - git mv server_iot-common iot-common |
|
|
|
# - git submodule sync |
|
|
|
@ -84,23 +86,19 @@ steps: |
|
|
|
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 |
|
|
|
environment: |
|
|
|
USER: |
|
|
|
from_secret: gitea_username |
|
|
|
PASSWD: |
|
|
|
from_secret: gitea_password |
|
|
|
volumes: |
|
|
|
- name: node |
|
|
|
path: /drone/src/node_modules |
|
|
|
settings: |
|
|
|
mirror: https://docker.mirrors.ustc.edu.cn |
|
|
|
commands: |
|
|
|
- git config --global credential.helper store |
|
|
|
- echo "https://$USER:$PASSWD@git.1000my.com" >> ~/.git-credentials |
|
|
|
- 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/ |
|
|
|
- cd ./src/qmmap |
|
|
|
- npm install |
|
|
|
- cd ../../ |
|
|
|
- npm install |
|
|
|
- unset CI |
|
|
|
- npm run build |
|
|
|
|