Repository forked from: skandyla/travis-cli
Repository name in Docker Hub: alphafoobar/travis-cli
The purpose of this docker image is to skip ruby installation but have an ability to work with travis cli.
Published via automated build mechanism.
This docker image contains the following software stack:
ruby:alpine
imagetravis
installed via ruby gem
docker pull skandyla/travis-cli
docker tag skandyla/travis-cli travis-cli
docker build -t travis-cli .
docker run -v $(pwd):/project --rm skandyla/travis-cli lint .travis.yml
docker run -v $(pwd):/project --rm skandyla/travis-cli status
-
first, change your working dir to the github repo you are working on:
cd your_git_project_dir
-
login interactively inside the container:
docker run -it --rm -v $(pwd):/project --entrypoint=/bin/sh skandyla/travis-cli
-
login to travis:
/project # travis login --org --github-token xxxxxxxxxxxxxxxxx
For generating github token see personal-api-tokens and required permissions for them: github-oauth-scopes -
work like authenticated user with your current repository:
/project # travis whoami
example of adding docker environment variables:
/project # travis env set DOCKER_EMAIL mymail@example.com
/project # travis env set DOCKER_USERNAME buildbot
/project # travis env set DOCKER_PASSWORD examplepass
example of encrypting data:
/project # travis encrypt BINTRAY-API-KEY --add deploy.key
unset environment variable for repo:
/project # travis env unset GH_TOKEN --private --repo skandyla/example
recursively update environment variables for multiple repositories:
/project # travis login
/project # travis repos -a --no-interactive --pro | grep some_repo_pattern | xargs -n1 travis env set GH_TOKEN $GH_TOKEN --private --repo
Note that --pro
is set for private repository within paid subscription.
MIT