{"id":19360501,"url":"https://github.com/uber5/gitlab2rancher-deploy","last_synced_at":"2026-03-03T11:38:43.314Z","repository":{"id":44082610,"uuid":"70505246","full_name":"Uber5/gitlab2rancher-deploy","owner":"Uber5","description":"Upgrade a Rancher service from a Gitlab CI script","archived":false,"fork":false,"pushed_at":"2023-04-17T16:03:47.000Z","size":26,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T15:04:21.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Uber5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-10T16:07:19.000Z","updated_at":"2024-07-08T10:18:57.000Z","dependencies_parsed_at":"2024-01-14T20:17:49.660Z","dependency_job_id":"f153657a-7e33-4e66-8455-fbe7d67a49a8","html_url":"https://github.com/Uber5/gitlab2rancher-deploy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fgitlab2rancher-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fgitlab2rancher-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fgitlab2rancher-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fgitlab2rancher-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Uber5","download_url":"https://codeload.github.com/Uber5/gitlab2rancher-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250435070,"owners_count":21430213,"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":[],"created_at":"2024-11-10T07:18:20.223Z","updated_at":"2026-03-03T11:38:43.241Z","avatar_url":"https://github.com/Uber5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Status\n\nWorks for [us](http://about.uber5.com) in production.\n\n# How to Use\n\nIn `.gitlab-ci.yml`, probably in a `deploy` stage, install this package and run\na deploy script:\n\n```\ndeploy:\n  stage: deploy\n  image: node:6\n  only:\n    - deploy-branch@some-name/my-project\n  script:\n    - npm install gitlab2rancher-deploy\n    - node scripts/deploy.js\n```\n\n... where `scripts/deploy.js` may look like this:\n\n```\nconst upgrade = require('gitlab2rancher-deploy')\n\nconst serviceUrl = process.env.RANCHER_SERVICE_URL\n\nupgrade(serviceUrl)\n.catch(err =\u003e { console.log(err.stack); process.exit(1) })\n```\n\n... and after defining the service url as a Gitlab variabl, e.g.\n\n```\nRANCHER_SERVICE_URL=https://my-rancher.my-host.com/v1/projects/1a5/services/1s29\n```\n\n... and `RANCHER_ACCESS_KEY` and `RANCHER_SECRET_KEY` (under `API` in Rancher):\n\nAt the next push to branch `deploy-branch` of project `some-name/my-project`,\nthe Rancher service with id `1s29` should be upgraded accordingly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber5%2Fgitlab2rancher-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber5%2Fgitlab2rancher-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber5%2Fgitlab2rancher-deploy/lists"}