Docker image for Travis CLI
Docker image for Travis CLI
- Build your image:
docker build -t mytravis .
- Positionate where your
.travis.yml
file is located
Run travis cli commands in this format:
docker run --rm -v $PWD:/repo -v ~/.travis:/travis mytravis <command>
- Login to your github repo:
docker run --rm -v $PWD:/repo -v ~/.travis:/travis mytravis -github-token <github_access_token>
- Test is your repo connected:
docker run --rm -v $PWD:/repo -v ~/.travis:/travis mytravis whoami
To get github_access_token go to your profile > Developer settings > Personal access tokens > Generate new token
For more commands go to docs