transactpro/phpci-deployer-org

PHPCI Plugin for deployer.org integration

1.0.1 2016-09-14 00:47 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:36:07 UTC


README

###PHPCI Plugin for deployer.org integration

SensioLabsInsight

Latest Stable Version Total Downloads License

Prerequisites

  • Up and running deployer.org tool dep and endpoint configuration done like in docs. (You can get it here)

Install

First of all - composer require transactpro/phpci-deployer-org

To avoid any security problems, this plugin stores three different recipe parts:

  1. common.deploy.php - some predefinitions. In other words, just extending default recipe/common.php.
  2. project.deploy.php - main deploy configuration. You can store here even server credentials (pure password or ssh-key password).
  3. deploy.php - rest part of deploy configuration. Mainly used for defining writable/shared directories.

Usage

Let's store recipe parts:

  • common.deploy.php => /var/www/deploy/recipes/common.deploy.php
  • project.deploy.php => /var/www/deploy/recipes/project.deploy.php
  • deploy.php => /your/project/root/deploy.php

========================

phpci.yml example:

build_settings:
    verbose: true

success:
    deployer:
        master:
            stage: prod
            file: /var/www/deploy/recipes/project.deploy.php

That's all folks!

=========================================

TODO

I'm planning to add wildcard for branches, so we can deploy master to production, bugfixes to staging and features to test/staging environments.