Created
November 18, 2016 15:10
-
-
Save patrickjahns/e3c073e799fd82a57e5baf57c620259a to your computer and use it in GitHub Desktop.
drone 0.5 authentication with private registry push/pull
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline: | |
| docker: | |
| image: myregistry.tld/drone/plugin-docker | |
| # authentication with the registry that is pulled from | |
| auth_config: | |
| username: octocat | |
| password: password | |
| email: [email protected] | |
| # authentication with the registry that is pushed to | |
| registry: myregistry.tld | |
| username: user | |
| password: password | |
| email: [email protected] | |
| repo: myregistry.tld/repo/name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # for pulling images from a private registry | |
| drone secret add --image=myregistry.tld/*/* --event=push --event=pull_request --event=deployment --event=tag repo/name REGISTRY_USERNAME user | |
| drone secret add --image=myregistry.tld/*/* --event=push --event=pull_request --event=deployment --event=tag repo/name REGISTRY_PASSWORD passwort | |
| drone secret add --image=myregistry.tld/*/* --event=push --event=pull_request --event=deployment --event=tag repo/name REGISTRY_EMAIL [email protected] | |
| # for pushing images to a private registry | |
| drone secret add --image=myregistry.tld/*/* --event=push --event=pull_request --event=deployment --event=tag repo/name DOCKER_USERNAME user | |
| drone secret add --image=myregistry.tld/*/* --event=push --event=pull_request --event=deployment --event=tag repo/name DOCKER_PASSWORD passwort | |
| drone secret add --image=myregistry.tld/*/* --event=push --event=pull_request --event=deployment --event=tag repo/name DOCKER_EMAIL [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment