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/
1# Provisoning
2export DRONE_TOKEN=MWOw7tPuh8XgxsVJD2CxfsuTJzEPLedz
3export DRONE_SERVER=https://ci.coderecipes.org
4
5# Loading Docker Auth into repos
6```
7{
8 "auths": {
9 "https://index.docker.io/v1/": {
10 "auth": "xxxxxxxx"
11 }
12 }
13}
14```
15
16drone secret add --name=.dockerconfigjson --data=$var1 --repository=Coderecipes/compiler
17drone secret add --name=docker_auth_config --data=$var1 --repository=Coderecipes/compiler
18
19* $var1 can also be replaced with `--data=@.docker/config.json\`
Created on 1/16/2019