Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to authenticate with Docker on Travis #122

Open
roborourke opened this issue Jan 6, 2021 · 0 comments
Open

Document how to authenticate with Docker on Travis #122

roborourke opened this issue Jan 6, 2021 · 0 comments

Comments

@roborourke
Copy link
Contributor

Due to Docker's new rate limits we need to inform clients and partners how to set up Travis up to use an authenticated account to avoid the problem.

Thanks to @nathanielks - the steps are:

  • Create an account on Docker Hub
  • Create an Access Token in Docker Hub
  • Add an environment variable named DOCKER_USERNAME to your Travis environment with the value of your Docker Hub username.
  • Add an environment variable named DOCKER_PASSWORD to your Travis environment with the value of the Access Token created before.
  • Add a before_install section of your .config/travis.yml file:
before_install:
  - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  • Commit and push these changes to a branch to trigger a build.

We can also suggest they make it a pro account to avoid the rate limits unless we decide to suggest people make a support request to us to set this up using the HM account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants