Private Registry in Drone CI
MD
S
MarkdownPull from DockerHub private registries via Drone. Contents of the JSON file are "user:password" but encoded. Docs: https://discourse.drone.io/t/how-to-pull-private-images-with-1-0/3155 https://docs.drone.io/installation/github/single-machine/ https://blog.drone.io/interview-with-punit-agrawal-devops-at-ebay/ https://docs.drone.io/user-guide/pipeline/secrets/
Provisoning
export DRONE_TOKEN=MWOw7tPuh8XgxsVJD2CxfsuTJzEPLedz export DRONE_SERVER=https://ci.coderecipes.org
Loading Docker Auth into repos
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "xxxxxxxx"
}
}
}
drone secret add --name=.dockerconfigjson --data=$var1 --repository=Coderecipes/compiler drone secret add --name=docker_auth_config --data=$var1 --repository=Coderecipes/compiler
- $var1 can also be replaced with
--data=@.docker/config.json\
Created on 1/16/2019