drone-plugins/drone-docker

If you need help troubleshooting why secrets were not passed to the plugin, please us https://gitter.im/drone/drone for support. Please provide a copy of your yaml and the output of your secrets listing, which you can get with the following command:

lijinghuatongxue opened this issue · 3 comments

If you need help troubleshooting why secrets were not passed to the plugin, please us https://gitter.im/drone/drone for support. Please provide a copy of your yaml and the output of your secrets listing, which you can get with the following command:

$ drone secret ls <repo>

DOCKER_USERNAME 
Events: push, tag, deployment
SkipVerify: false
Conceal: false

DOCKER_EMAIL 
Events: push, tag, deployment
SkipVerify: false
Conceal: false

DOCKER_PASSWORD 
Events: push, tag, deployment
SkipVerify: false
Conceal: false

Originally posted by @bradrydzewski in #120 (comment)

Step 12/12 : LABEL org.label-schema.vcs-url=http://192.168.0.205/root/k8s-drone-demo2.git
---> Running in 64cbfcf58c17
Removing intermediate container 64cbfcf58c17
---> fc74d5396590
Successfully built fc74d5396590
Successfully tagged 178f7579d333ce525b793f8fbb2d3560887f377f:latest

  • /usr/local/bin/docker tag 178f7579d333ce525b793f8fbb2d3560887f377f harbor.lijinghua.club/test/k8s-drone-demo2:latest
  • /usr/local/bin/docker push harbor.lijinghua.club/test/k8s-drone-demo2:latest
    The push refers to repository [harbor.lijinghua.club/test/k8s-drone-demo2]
    775d435c76cd: Preparing
    b68c6c93ec58: Preparing
    50644c29ef5a: Preparing
    denied: requested access to the resource is denied
    time="2020-07-19T07:42:33Z" level=fatal msg="exit status 1"

root@test-204:~# drone secret ls root/k8s-drone-demo2
docker_password
Events:
Images:

docker_username
Events:
Images:

test-key
Events:
Images:

Do I need to add my Events properties ?