Sign inSign up

ubergarm/travis-ci-cli

By ubergarm

Updated almost 11 years ago

Travis CI CLI version 1.8.0. (Kind of big, ~740mb).

Image
0

1.1K

ubergarm/travis-ci-cli repository overview

Updated version of: https://github.com/andredumas/docker-travis-ci-cli

Dockerfile

FROM ruby

RUN gem install travis --no-rdoc --no-ri

# Location where travis config stored
ENV TRAVIS_CONFIG_PATH /travis
VOLUME /travis

# Generally the current working dir will be used as the repo volume
VOLUME /repo
WORKDIR /repo

ENTRYPOINT ["/usr/local/bundle/bin/travis"]

Usage

Go into github and create a new personal access token w/ default settings then:

alias travis='docker run --rm -v $PWD:/repo -v ~/.travis:/travis ubergarm/travis-ci-cli'
travis whoami
travis login --github-token <BLAHBLAHBLAH>
travis whoami
travis encrypt -r my_github/my_repo MY_SECRET_ENV_KEY=<BLAHBLAH>

Then in your .travis.yml do something like this:

env:
  global:
    - secure: {{ blahblah1 }}
    - secure: {{ blahblah2 }}

Reference

http://stackoverflow.com/questions/14471666/how-to-use-travis-cis-travis-yml-to-provide-environment-parameters-for-node-js

Tag summary

Content type

Image

Digest

sha256:c9b25bebf

Size

268.1 MB

Last updated

almost 11 years ago

docker pull ubergarm/travis-ci-cli