14 lines
331 B
PHP
Raw Normal View History

<?php
namespace Deployer;
2021-11-08 22:59:39 +01:00
desc('Displays info about deployment');
task('deploy:info', function () {
2021-11-21 11:30:08 +01:00
$target = get('target');
try {
$target = runLocally("git rev-parse --abbrev-ref $target");
} catch (\Throwable $exception) {
// noop
}
info("deploying <fg=magenta;options=bold>$target</>");
2021-11-21 10:57:25 +01:00
});