Adding a new repository to Docker Hub
Set up your own account on https://hub.docker.com/
Get an existing admin (normally your team lead) to add you to the
praekeltfoundationorganisationCreate a new repository under the organisation for your new image
Add the
automationteam as a collaborator to your new repository with write accessUse the
travis encryptcommand locally to encrypt thepraekeltorgdeployDocker Hub password (from 1Password) - for example, encryptREGISTRY_PASS=supersecretpassword. NOTE: if you are usingtravis-ci.ORGthis will suffice. If you are usingtravis-ci.COMyou may need to use the--proflag e.g.travis encrypt --pro 'REGISTRY_PASS="secret"'. Travis CI are switching open source projects over to travis-ci.com and new projects will use.com.Use the encrypted password environment variable to do
docker loginin your Travis file like this:echo -n $REGISTRY_PASS | docker login -u "$REGISTRY_USER" --password-stdin
You can then push an image to Docker Hub using
docker-ci-deploy:docker-ci-deploy --version $VERSION --version-latest $IMAGE_NAME