{"id":19651412,"url":"https://github.com/sourceboat/rancher-deploy","last_synced_at":"2025-04-28T16:31:32.087Z","repository":{"id":42977095,"uuid":"169067637","full_name":"sourceboat/rancher-deploy","owner":"sourceboat","description":"This docker image enables simple deployments to Rancher.","archived":false,"fork":false,"pushed_at":"2022-03-25T08:35:19.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-05T09:51:11.251Z","etag":null,"topics":["cli","deployment","docker","kubernetes","rancher"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourceboat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T11:19:25.000Z","updated_at":"2022-03-24T12:08:25.000Z","dependencies_parsed_at":"2022-08-29T18:50:46.759Z","dependency_job_id":null,"html_url":"https://github.com/sourceboat/rancher-deploy","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceboat%2Francher-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceboat%2Francher-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceboat%2Francher-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceboat%2Francher-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourceboat","download_url":"https://codeload.github.com/sourceboat/rancher-deploy/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251345946,"owners_count":21574808,"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","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":["cli","deployment","docker","kubernetes","rancher"],"created_at":"2024-11-11T15:06:28.774Z","updated_at":"2025-04-28T16:31:31.431Z","avatar_url":"https://github.com/sourceboat.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sourceboat/rancher-deploy\n\n[![Docker Build Status](https://img.shields.io/docker/cloud/build/sourceboat/rancher-deploy.svg?style=flat-square)](https://hub.docker.com/r/sourceboat/rancher-deploy/builds/)\n[![Release](https://img.shields.io/github/release/sourceboat/rancher-deploy.svg?style=flat-square)](https://github.com/sourceboat/rancher-deploy/releases)\n[![Docker Pulls](https://img.shields.io/docker/pulls/sourceboat/rancher-deploy.svg?style=flat-square)](https://hub.docker.com/r/sourceboat/rancher-deploy/)\n[![MicroBadger Size](https://img.shields.io/microbadger/image-size/sourceboat/rancher-deploy.svg?style=flat-square)](https://microbadger.com/images/sourceboat/rancher-deploy)\n[![MicroBadger Layers](https://img.shields.io/microbadger/layers/sourceboat/rancher-deploy.svg?style=flat-square)](https://microbadger.com/images/sourceboat/rancher-deploy)\n\nThis docker image enables simple deployments to Rancher.\n\n## What's included?\n\n- [Git CLI](https://git-scm.com/) `git`\n- [Kubernetes CLI](https://kubernetes.io/docs/tasks/tools/install-kubectl/) `kubectl`\n- [Rancher CLI](https://rancher.com/docs/rancher/v2.x/en/cli/) `rancher`\n- [Sentry CLI](https://docs.sentry.io/cli/) `sentry-cli`\n\nIt also comes with a custom `rancher-redeploy` and `rancher-exec` command helper (see usage section).\n\n## Usage\n\n### Simple Redeploy via GitLab CI and `rancher-redeploy` helper\n\nTo use this image via GitLab CI add the following to the `.gitlab-ci.yml`:\n\n```yml\ndeploy:\n  stage: deploy\n  image: sourceboat/rancher-deploy:latest\n  variables:\n    RANCHER_URL: https://rancher.example.com\n    K8S_NAMESPACE: my-namespace-name\n    K8S_DEPLOYMENT: my-deployment-name\n  script:\n    - rancher login $RANCHER_URL --token $RANCHER_TOKEN\n    - rancher-redeploy $K8S_NAMESPACE $K8S_DEPLOYMENT\n```\n\nDon't forget to provide `$RANCHER_TOKEN` via GitLab CI/CD variable.\n\nThis will trigger a redeploy of the given Kubernetes deployment by updating a label\nand pull the newest image if configured correctly.\n\n### Execute Command via `rancher-exec` helper\n\nYou can also execute commands in pods of your deployment via `rancher-exec $K8S_NAMESPACE $K8S_DEPLOYMENT 'ls'`.\nThis will execute the given command in the first pod of your deployment.\nCurrently this is only tested with single container pods.\n\n## Changelog\n\nCheck [releases](https://github.com/sourceboat/rancher-deploy/releases) for all notable changes.\n\n## Credits\n\n- [Phil-Bastian Berndt](https://github.com/pehbehbeh)\n- [All Contributors](https://github.com/sourceboat/rancher-deploy/graphs/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourceboat%2Francher-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourceboat%2Francher-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourceboat%2Francher-deploy/lists"}