I am having troubling passing credentials for docker hub so that I can push the built image.
Anyone have any ideas? I have tried hard encoding username: blah and password: blah into the drone.yml and this doesn’t work. I have also tried using docker_username and docker_password which is what the plugins/docker is expecting and still doesn’t want to play ball.
I also can confirm the secrets are present with:
$ drone secret ls example/docker-project docker_username Events: push, tag, deployment Images: plugins/docker docker_password Events: push, tag, deployment Images: plugins/docker
So what gives? why is it not detecting any creds?
I have also added it to the reg section under the repo and it still doesn’t like it. I am trying to push to docker.io.
I have tried several variants but still no success, the latest configs for .drone.yml can be seen below.
pipeline: docker: image: plugins/docker repo: example/project action: build tags: latest publish: docker: repo: example/project secrets: [ docker_username, docker_password ] when: branch: master
pipeline: docker: image: plugins/docker repo: example/project action: build tags: latest publish: docker: repo: example/project username: myuser password: mypass when: branch: master
Can anyone spot what I am doing wrong? I would be extremely grateful if anyone could point out why this is failing. Worst case I could probably do manual docker commands to do it via script but would prefer to use the provided drone official plugin.
I am also running drone 0.8.2 which afaik is the latest stable/official release.