From fa7bac5767c19e505601f6e323ba7c9a688fb527 Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Mon, 12 Jun 2023 11:27:13 +0800 Subject: [PATCH] fix: fix ci --- .drone.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1c7e686..5a9bbc3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -84,13 +84,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 --help + - 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