fix(CI): 修正CI脚本
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
- 恢复证书注入
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user