承接 linniksa/composer-smart-source-url 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-01