linniksa/composer-smart-source-url
最新稳定版本:0.5.1
Composer 安装命令:
composer require linniksa/composer-smart-source-url
包简介
Helps composer choose the right url for private packages from gitlab
README 文档
README
This plugin helps composer choose the right url for private packages (e.g. for gitlab runner) from gitlab (github btw also supported), in conditions when you need to specify ssh url for repository in composer.json (e.g. for deployment).
When you specify auth credentials in auth.json, the plugin changes the URL scheme from ssh to http(s) on the fly (without touching any files).
Example
Add plugin to you project:
composer.phar require-dev linniksa/composer-smart-source-url
Add this lines to your .gitlab-ci.yml:
- > echo > auth.json -e '{ "http-basic":{ "[YOU DOMAIN]": { "username":"gitlab-ci-token", "password": "'${CI_JOB_TOKEN}'" } } }'
Don't forget to change [YOU DOMAIN].
Thats it, now your private repositories can be easily cloned by gitlab runner
统计信息
- 总下载量: 52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-01