{"id":15366058,"url":"https://github.com/leinue/ci","last_synced_at":"2025-11-07T12:30:40.902Z","repository":{"id":152546796,"uuid":"95645663","full_name":"leinue/ci","owner":"leinue","description":"ci","archived":false,"fork":false,"pushed_at":"2017-06-28T08:17:22.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T21:32:12.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leinue.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2017-06-28T08:15:59.000Z","updated_at":"2017-06-28T08:17:23.000Z","dependencies_parsed_at":"2023-07-07T01:45:16.576Z","dependency_job_id":null,"html_url":"https://github.com/leinue/ci","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"08fa51cdf6744deec67c827f2653b37097bba45d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leinue%2Fci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leinue%2Fci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leinue%2Fci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leinue%2Fci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leinue","download_url":"https://codeload.github.com/leinue/ci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239530015,"owners_count":19654213,"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-10-01T13:17:14.474Z","updated_at":"2025-11-07T12:30:40.869Z","avatar_url":"https://github.com/leinue.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memect CI 自动化配置脚本\n\n# 文件说明\n\n## config.sh\n\n配置ssh配置文件，只需要执行一次\n\n### 参数说明\n\nconfig.sh [host] [hostname] [user] [port]\n\n### 示例\n\n``` shell\n\nsh config.sh qianliyan 101.200.162.35 labs 12021\n\n```\n\n## prod_env.sh\n\n初始化服务器环境，包括git bare目录、git目录、hook脚本，只需要执行一次\n\n### 参数说明\n\nprod_env.sh [project_folder]\n\n### 示例\n\n``` shell\nsh prod_env.sh /opt/project/fuck\n```\n\n## test_env.sh\n\n初始化测试机环境，添加了一个git remote源，name为``online``\n\n### 参数说明\n\ntest_env.sh [project_folder] [host]\n\n### 示例\n\n``` shell\nsh test_env.sh /var/www/fuck labs@qianliyan:/opt/project/fuck.bare\n```\n\n## 开发使用流程\n\n* 在gitlab上新建git项目\n* 本地开发机/测试机clone项目\n* 确定上线时执行git push online HEAD:master命令即可\n\n## 部署流程\n\n* 执行config.sh，若已经执行过则不需要再执行\n* 将ssh public key配置到对应服务器上\n* 到目标服务器上执行prod_env.sh\n* 在开发机或测试机上执行test_env.sh\n* 享受开发，接下来的上线可以解放双手:)\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleinue%2Fci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleinue%2Fci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleinue%2Fci/lists"}