|
|
@ -84,13 +84,19 @@ steps: |
|
|
pull: if-not-exists |
|
|
pull: if-not-exists |
|
|
# image: registry.k8s.1000my.com/library/node:16.15.0-slim |
|
|
# 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.cn-hangzhou.aliyuncs.com/qmiot/init:node-14-slim-python2_3 |
|
|
|
|
|
environment: |
|
|
|
|
|
USER: |
|
|
|
|
|
from_secret: gitea_username |
|
|
|
|
|
PASSWD: |
|
|
|
|
|
from_secret: gitea_password |
|
|
volumes: |
|
|
volumes: |
|
|
- name: node |
|
|
- name: node |
|
|
path: /drone/src/node_modules |
|
|
path: /drone/src/node_modules |
|
|
settings: |
|
|
settings: |
|
|
mirror: https://docker.mirrors.ustc.edu.cn |
|
|
mirror: https://docker.mirrors.ustc.edu.cn |
|
|
commands: |
|
|
commands: |
|
|
- git --help |
|
|
|
|
|
|
|
|
- git config --global credential.helper store |
|
|
|
|
|
- echo "https://$USER:$PASSWD@git.1000my.com" >> ~/.git-credentials |
|
|
- ln -s /usr/bin/python2 /usr/bin/python |
|
|
- ln -s /usr/bin/python2 /usr/bin/python |
|
|
- python --version |
|
|
- python --version |
|
|
- npm config set registry https://registry.npm.taobao.org |
|
|
- npm config set registry https://registry.npm.taobao.org |
|
|
|