Skip to content

Instantly share code, notes, and snippets.

@empeje
Last active June 4, 2019 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save empeje/bc3cc63136e534fd2734ccd4f3b598d0 to your computer and use it in GitHub Desktop.
Save empeje/bc3cc63136e534fd2734ccd4f3b598d0 to your computer and use it in GitHub Desktop.
Travis CI Encrypt Secret Environment Variable

Travis Encrypt Treasure

# install travis ruby command line utility
> sudo gem install travis
> travis --version
# encrypt DOCKER_EMAIL, DOCKER_USER & DOCKER_PASSWORD
> travis encrypt DOCKER_EMAIL=your-docker-hub-email@gmail.com --add env.global.DOCKER_EMAIL
> travis encrypt DOCKER_USER=your-docker-hub-username --add env.global.DOCKER_USER
> travis encrypt DOCKER_PASS=your-docker-hub-password --add env.global.DOCKER_PASS

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment