task select for multiple stages #3244
-
this works:
In deployer 6 we could do:
I do not know how to replicate that on Deployer 7. It seems like a common use case, yet isn't covered in the documentation or migration notes. None of these work:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
maybe this is the answer (#1608 (comment))
Would appreciate feedback from @antonmedv if you've got time |
Beta Was this translation helpful? Give feedback.
-
further testing reveals that |
Beta Was this translation helpful? Give feedback.
-
this also does not work:
The second stage overrides the first and the task only runs in qa. |
Beta Was this translation helpful? Give feedback.
-
Jeez. Okay, after digging through lots of github issue I found a link to this: https://lorisleiva.com/deploy-your-laravel-app-from-scratch/create-your-own-deployer-recipes#labelling-hosts-and-filtering-tasks I guess the solution is I really really really hope the new documentation is coming soon, especially since many like me were forced into 6->7 migration due to php 8. |
Beta Was this translation helpful? Give feedback.
Jeez. Okay, after digging through lots of github issue I found a link to this: https://lorisleiva.com/deploy-your-laravel-app-from-scratch/create-your-own-deployer-recipes#labelling-hosts-and-filtering-tasks
I guess the solution is
task(...)->select("stage=dev,stage=qa");
I really really really hope the new documentation is coming soon, especially since many like me were forced into 6->7 migration due to php 8.