A Buildkite plugin to login to docker registries.
Securing your password
To avoid leaking your docker password to buildkite.com or anyone with access to build logs, you need to avoid including it in pipeline.yml. This means it needs to be set specifically with an environment variable in an Agent hook, or made available from a previous plugin defined on the same step.
# environment or pre-command hook export MY_DOCKER_LOGIN_PASSWORD=mysecretpassword
steps: - command: ./run_build.sh plugins: - docker-login#v2.0.1: username: myuser password-env: MY_DOCKER_LOGIN_PASSWORD
The username to send to the docker registry.
The server to log in to, if blank or ommitted logs into Docker Hub.
The environment variable that the password is stored in.
MIT (see LICENSE)