Sign inSign up

jerray/drone-composer

By jerray

•Updated over 7 years ago

Drone Plugin used to download PHP dependencies

Image
0

4.4K

jerray/drone-composer repository overview

⁠Drone Composer

This is a drone⁠ plugin used to download PHP dependencies using Composer.

You can download private repositories using this image without sharing socket of ssh-agent. Instead, you provide your RSA private key to achieve the goal. The default entrypoint run composer with --ignore-platform-reqs option, to ignore your project's platform requirements such as PHP version, extensions, etc.

⁠Example

steps:
- name: vendor
  image: jerray/drone-composer:latest
  settings:
    git_private_key:
      from_secret: git_private_key
    git_server_hosts:
    - github.com
    composer_auth:
      from_secret: composer_auth_json
    composer_repo_packagist:

⁠Settings

  • git_private_key RSA private key used to download private repositories through SSH.
  • git_server_hosts Git site domain list where your private repositories are located at.
  • composer_auth Contents of auth.json⁠. You can also provide a GitHub OAuth token to avoid GitHub's request rate limit.
  • composer_repo_packagist Packagist URL.
  • chdir Change to a sub directory to run the composer command.

Tag summary

Content type

Image

Digest

Size

59.6 MB

Last updated

over 7 years ago

docker pull jerray/drone-composer