Description Travis CLI in a docker container (encrypt, lint, env, monitor)
5.1K
One may often need to invoke the Travis CLI such as for encrypting environment variables for Travis CI, yet that requires to use travis's ruby binary, and hence requires a ruby runtime.
This small docker image exposes the travis CLI so that it is easily accessible and isolated inside of a docker container, leaving you out of the need to set it up yourself.
The docker image already has ruby and the travis gem installed so it can execute any
commands for the Travis CLI.
The image's entrypoint is set to the travis executable so any command line arguments
appended to docker run will be added to that, providing easy access to users.
When encrypting something, the travis cli needs a way to know what travis repository
you are encrypting for so it can use the correct private key. This is either done by
being in the project's git repository which has the details, or providing a -r <owner>/<repo>
argument that specifies this.
This docker image uses the latter as a more verbose and flexible option to encrypt environment variables.
Example:
docker run --rm lirantal/travis-cli encrypt ENV_VARIABLE_NAME="GH_TOKEN_GOES_HERE" -r lirantal/dockly
Liran Tal [email protected]
Content type
Image
Digest
Size
85.2 MB
Last updated
over 6 years ago
docker pull lirantal/travis-cli