unleashedtech/deployer-recipes

Deployer 7+ functionality used by Unleashed Technologies

0.2.0 2021-11-30 20:23 UTC

README

Latest Version Software License Build Status

This package uses Deployer 7, which supports recipes defined by YAML or PHP.

Deployer will import the recipes linearly & merge them recursively. Deployer looks for deploy.php or deploy.yaml when run.

Installation

All recipe paths have been adjusted to use the files in the vendor directory and thus should be installed with composer:

composer require unleashedtech/deployer-recipes

Examples

Recipes have been organized to easily support any version of any software. They make several assumptions about git repository settings, deployment locations & host settings. These assumed variable values can easily be overridden.

Please note that tasks assume databases on relevant stages have already been configured.

Run vendor/bin/dep tree deploy to view the deploy recipe tree.

Run vendor/bin/dep deploy to deploy.

Run vendor/bin/dep to review available recipes.

Supported Platforms

Please choose a platform to view related documentation.

Before/After Hooks

Deployer supports running tasks before or after other defined tasks. Defining custom tasks to trigger before & after other defined tasks is trivial. Such functionality can be added to the end of deploy.yaml, as shown below:

tasks:
    foo:
        script:
            - "echo 'foo'"
    bar:
        script:
            - "echo 'bar'"

after:
    deploy:symlink: foo

before:
    deploy:unlock: bar

References