From ef0087d988edd1a5a25339842d752aa1f452a923 Mon Sep 17 00:00:00 2001 From: Propaganistas Date: Mon, 26 Feb 2024 14:30:43 +0100 Subject: [PATCH] Add release name to deploy:info (#3783) * add release name to info * failsafe for initial deployment --- recipe/deploy/info.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipe/deploy/info.php b/recipe/deploy/info.php index 805b02ce0..d4c74d711 100644 --- a/recipe/deploy/info.php +++ b/recipe/deploy/info.php @@ -3,5 +3,7 @@ desc('Displays info about deployment'); task('deploy:info', function () { - info("deploying {{target}}"); + $releaseName = test('[ -d {{deploy_path}}/.dep ]') ? get('release_name') : 1; + + info("deploying {{target}} (release {$releaseName})"); });