Travis CI CLI version 1.8.0. (Kind of big, ~740mb).
1.1K
Updated version of: https://github.com/andredumas/docker-travis-ci-cli
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"]
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 }}
Content type
Image
Digest
sha256:c9b25bebf…
Size
268.1 MB
Last updated
almost 11 years ago
docker pull ubergarm/travis-ci-cli