-
Notifications
You must be signed in to change notification settings - Fork 7
Pushing: Authentication
Jordon Bedwell edited this page Apr 23, 2016
·
4 revisions
Docker Template can attempt to push your image (after authenticating.) It will do so with the Docker API and it supports both aliases and full blown images (since to Docker this is exactly the same.) By default when you docker build --push
(or docker-template push
) it will try and use your ~/.docker
to authenticate you, however if you are on a CI you might need to use the following variables:
$DOCKER_SERVER
$DOCKER_USERNAME
$DOCKER_PASSWORD
$DOCKER_EMAIL
PROTIP: If you are on Travis-CI or another public CI, make sure to encrypt those variables so that nobody gets your authentication information. On Travis you can do this with bundle exec travis encrypt data
Copyright 2016 Jordon Bedwell - License: CC BY-SA 4.0