deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.56k stars 1.48k forks source link

YAML configuration requires specific order of entries #3704

Closed boesing closed 5 months ago

boesing commented 1 year ago

It seems that deployer reads configuration as it comes in. I personally would expect the order to be:

  1. config
  2. import
  3. tasks
  4. after/before

The main reason for this is that:


Problematic YAML order:

tasks:
  "deploy:prepare:whatever":
    - info: "Whatever"
after:
  "deploy:prepare": "deploy:prepare:whatever"
import:
  - 'recipe/common.php'

Working YAML order:

import:
  - 'recipe/common.php'
tasks:
  "deploy:prepare:whatever":
    - info: "Whatever"
after:
  "deploy:prepare": "deploy:prepare:whatever"