Add release name to deploy:info (#3783)

* add release name to info

* failsafe for initial deployment
This commit is contained in:
Propaganistas 2024-02-26 14:30:43 +01:00 committed by GitHub
parent 51e8e82c07
commit ef0087d988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,5 +3,7 @@ namespace Deployer;
desc('Displays info about deployment');
task('deploy:info', function () {
info("deploying <fg=magenta;options=bold>{{target}}</>");
$releaseName = test('[ -d {{deploy_path}}/.dep ]') ? get('release_name') : 1;
info("deploying <fg=magenta;options=bold>{{target}}</> (release <fg=magenta;options=bold>{$releaseName}</>)");
});