Skip to main content
Version: 7.x

YAML

Deployer supports recipes written in YAML. For validating structure, Deployer uses JSON Schema declared in schema.json.

Here is an example of YAML recipe:

import:
- recipe/laravel.php

config:
repository: 'git@github.com:example/example.com.git'
remote_user: deployer

hosts:
example.com:
deploy_path: '~/example'

tasks:
build:
- cd: '{{release_path}}'
- run: 'npm run build'

after:
deploy:failed: deploy:unlock

YAML recipes can include recipes written in PHP. For example, some tasks maybe written in PHP and imported in YAML.

Also, other way around is possible: import YAML recipe from PHP. Use import() function for that.



Support Deployer ❤️

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer.
I maintain this open source project in my spare time.
Supporters on GitHub give me extra motivation to work on the project.