Replies: 1 comment
-
Currently it's not easy to do, as you need to use something like this: // Hosts
host('example.com');
localhost('build');
localhost('notify');
localhost('verify');
// Tasks
task('build', function () {
if (currentHost()->getAlias() === 'build') {
run('...');
} else if (currentHost()->getAlias() === 'notify') {
run('...');
}
})->select('alias!=example.com');
before('deploy', 'build');
task('deploy')->select('example.com'); And build will be parallel:
But this is not really nice. I'm gonna think about adding special |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Wondering if there is a way in v7 to run local tasks in parallel.
e.g. when we deploy we validate the repository is in a pristine condition (up to date, no uncommitted files, on branch that is being deployed), dispatch a notification to 2 different services, build assets.
It would be great if all 4 of these tasks could be run in parallel to speed up deployment. Is this already possible?
Beta Was this translation helpful? Give feedback.
All reactions