fix(CI): 修正CI脚本
Some checks reported errors
continuous-integration/drone/push Build encountered an error

- 恢复证书注入
This commit is contained in:
tobegold574
2025-11-10 20:40:50 +08:00
parent ec7b00953f
commit 322d5d6714

View File

@@ -18,11 +18,16 @@ clone:
disable: true
steps:
# 0⃣ 克隆代码
# 0⃣ 克隆代码(带自签证书)
- name: clone
image: alpine/git:latest
environment:
CA_CRT:
from_secret: ca-crt
commands:
- apk add --no-cache ca-certificates
- echo "$CA_CRT" > /etc/ssl/certs/ca.crt
- update-ca-certificates
- git clone https://gitea.local.knowai/tobegold574/knowai.git /drone/src
- cd /drone/src
- git checkout ${DRONE_BRANCH}