Create .dockercfg for auth to registry

https://circleci.com/docs/docker#deployment-to-a-docker-registry
Note that a .dockercfg file must be dropped in place in order to skip interactive login to the registry. You should use environment variables as in the example above to store sensitive information. Replaced by `sed` in config