由于拒绝访问,将无人机推送到Dockerhub失败

问题描述 投票:1回答:1

我已经使用Docker插件设置了Drone。它的构建很好,但是无法推送到私有Dockerhub存储库。

我已经确认dockerhub_username和dockerhub_password是环境变量。

kind: pipeline
type: exec
name: default

steps:
- name: docker
  image: plugins/docker
  settings:
    repo: jbc22/myrepo
    username:
      from_secret: dockerhub_username
    password:
      from_secret: dockerhub_password
  publish:
    image: jbc22/myrepo
    report: jbc22/myrepo

Drone返回:denied: requested access to the resource is denied time="2019-09-03T19:34:32Z" level=fatal msg="exit status 1"

我希望看到映像被推送到Dockerhub。

dockerhub drone
1个回答
0
投票

您应该查看官方文档:drone-secrets

秘密是在无人机存储库设置中设置的,不是环境变量。

© www.soinside.com 2019 - 2024. All rights reserved.