deployer
deployer copied to clipboard
YAML configuration requires specific order of entries
- Deployer version: 9.1.0
- Deployment OS: Debian 12
It seems that deployer reads configuration as it comes in. I personally would expect the order to be:
configimporttasksafter/before
The main reason for this is that:
- one might provide required config variables for recipes before actually importing the recipe.
tasksmight want toinvoketasks fromimported recipesafter/beforewants to queuetasksafterorbeforetasks fromimported recipes
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"