{"id":15679010,"url":"https://github.com/lirantal/docker-travis-cli","last_synced_at":"2025-09-07T03:34:45.970Z","repository":{"id":34149483,"uuid":"158003235","full_name":"lirantal/docker-travis-cli","owner":"lirantal","description":"Travis CLI in a docker container (encrypt, lint, env, monitor)","archived":false,"fork":false,"pushed_at":"2023-02-13T03:41:49.000Z","size":19,"stargazers_count":12,"open_issues_count":9,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T09:08:40.809Z","etag":null,"topics":["build","docker","travis","travis-ci","travis-cli"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lirantal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-17T16:30:37.000Z","updated_at":"2023-03-22T19:19:28.000Z","dependencies_parsed_at":"2025-03-10T22:32:23.956Z","dependency_job_id":"ea95bbad-eeb6-41a9-ac3a-d7309d28dc5e","html_url":"https://github.com/lirantal/docker-travis-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lirantal/docker-travis-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-travis-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-travis-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-travis-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-travis-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lirantal","download_url":"https://codeload.github.com/lirantal/docker-travis-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fdocker-travis-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273992853,"owners_count":25203790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","docker","travis","travis-ci","travis-cli"],"created_at":"2024-10-03T16:25:56.576Z","updated_at":"2025-09-07T03:34:45.943Z","avatar_url":"https://github.com/lirantal.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/lirantal/lirantal%2Fdocker-travis-cli%2Fdocker-travis-cli?branch=master\u0026key=eyJhbGciOiJIUzI1NiJ9.NTgxMjdkMTU3MzhhYTMwMTAwMjg2YWY4.4TkcAYZuKIcjt2ELMIndMUYK3L0pzZWErAzRnRGlDnE\u0026type=cf-1)]( https://g.codefresh.io/pipelines/docker-travis-cli/builds?repoOwner=lirantal\u0026repoName=docker-travis-cli\u0026serviceName=lirantal%2Fdocker-travis-cli\u0026filter=trigger:build~Build;branch:master;pipeline:5bf043d341859180ee3f5e4d~docker-travis-cli)\n[![](https://images.microbadger.com/badges/version/lirantal/travis-cli.svg)](https://microbadger.com/images/lirantal/travis-cli \"Get your own version badge on microbadger.com\")\n[![](https://images.microbadger.com/badges/image/lirantal/travis-cli.svg)](https://microbadger.com/images/lirantal/travis-cli \"Get your own image badge on microbadger.com\")\n\n\n\n\n# About\n\nOne may often need to invoke the Travis CLI such as for encrypting environment variables for Travis CI, yet that requires to use\ntravis's ruby binary, and hence requires a ruby runtime.\n\nThis small docker image exposes the travis CLI so that it is easily accessible and isolated\ninside of a docker container, leaving you out of the need to set it up yourself.\n\n\n# Usage\n\nThe docker image already has ruby and the `travis` gem installed so it can execute any\ncommands for the Travis CLI.\n\nThe image's entrypoint is set to the `travis` executable so any command line arguments\nappended to `docker run` will be added to that, providing easy access to users.\n\n## Logging in\n\n```\ndocker run --rm -v ${HOME}/.travis:/root/.travis -it lirantal/travis-cli login\n```\n\n## Encrypting environment variables\n\nWhen encrypting something, the travis cli needs a way to know what travis repository\nyou are encrypting for so it can use the correct private key. This is either done by\nbeing in the project's git repository which has the details, or providing a `-r \u003cowner\u003e/\u003crepo\u003e`\nargument that specifies this.\n\nThis docker image uses the latter as a more verbose and flexible option to encrypt\nenvironment variables.\n\nExample:\n\n```\ndocker run --rm -v ${HOME}/.travis:/root/.travis lirantal/travis-cli encrypt ENV_VARIABLE_NAME=\"GH_TOKEN_GOES_HERE\" -r lirantal/dockly\n```\n\nOr, to allow it to automatically detect the repository from the current directory:\n\n```\ndocker run --rm -v ${HOME}/.travis:/root/.travis lirantal/travis-cli -v ${PWD}:${PWD} --workdir ${PWD} \\\n  encrypt ENV_VARIABLE_NAME=\"GH_TOKEN_GOES_HERE\" -r lirantal/dockly\n```\n\nDocumentation Resources:\n* [travis keys encryption](https://docs.travis-ci.com/user/encryption-keys/)\n\n## Linting a .travis.yml file\n\nAdd the lint command option and the path to the `.travis.yml`:\n\n```\ndocker run --rm lirantal/travis-cli lint .travis.yml\n```\n\n# Contributing\n\nYou're welcome to suggest any changes and/or improvements by updating the Dockerfile or any other\nidea you may have.\n\nBuilding the image from the Dockerfile and then you may execute it locally:\n\n```\ndocker build --tag lirantal/travis-cli .\n```\n\n# Author\nLiran Tal \u003cliran.tal@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirantal%2Fdocker-travis-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flirantal%2Fdocker-travis-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirantal%2Fdocker-travis-cli/lists"}