我在gogs git存储库中写了一个.drone.yml。但当我推动git更改时,无人机网络告诉我使用特权模式的权限不足。我该如何解决?
这是我的.drone.yml:
pipeline:
build:
image: test-harbor.cx580.com/centos/centos7:Beat2.0
privileged: true
commands:
- mkdir -p /data/k8s/drone/jar-db/
- \cp README.md /data/k8s/drone/jar-db/
- ls /data/k8s/drone/jar-db/
push:
image: plugins/docker
repo: test-harbor.cx580.com/centos/centos7:Beat2.0
registry: test-harbor.cx580.com
username: ci
password: '1qaz!QAZ'
tags:
- latest
我在谷歌搜索过,这个网页大小告诉我Your repository isn't in the trusted list of repositories. Get in touch with Devops and ask them to trust it
但是,我怎么能信任这个存储库呢?
然后我在无人机网络中进行设置,并在设置中检查“受信任”,但它也失败了: img
答案 0 :(得分:2)
...
- DRONE_OPEN=false
- DRONE_ADMIN=<your gitlab username>
- DRONE_GITLAB_PRIVATE_MODE=true
...
设置 - &gt;受信任的like this