代码之家  ›  专栏  ›  技术社区  ›  money overflow

无人机“权限不足,无法使用特权模式”

  •  1
  • money overflow  · 技术社区  · 8 年前

    我写了一封信。嗡嗡声我的gogs git存储库中的yml。但当我推动git更改时,drone web告诉我权限不足,无法使用特权模式。我怎样才能修复它?

    这是我的。嗡嗡声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

    1 回复  |  直到 8 年前
        1
  •  2
  •   tabsp    8 年前
    1. 设置无人机服务器环境(我的存储库是GitLab)

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

    1. 启用无人机设置

    设置->受信任的 like this