1

我在我的 gogs git 存储库中写了一个 .drone.yml。但是当我推送 git change 时,drone web 告诉我权限不足,无法使用特权模式。我该如何解决?

这是我的 .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

我在 google 中搜索过,这个 websize 告诉我Your repository isn't in the trusted list of repositories. Get in touch with Devops and ask them to trust it,但是,我怎么能信任存储库?

我在无人机网络中进行设置,并检查设置中的受信任,但它也失败了: img

4

1 回答 1

2
  1. 设置无人机服务器环境(我的存储库是 GitLab)

... - DRONE_OPEN=false - DRONE_ADMIN=<your gitlab username> - DRONE_GITLAB_PRIVATE_MODE=true ...

  1. 启用无人机设置

设置 ->像这样信任

于 2018-04-17T03:31:35.807 回答