deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.56k stars 1.48k forks source link

Add release name to deploy:info #3783

Closed Propaganistas closed 7 months ago

Propaganistas commented 7 months ago

I always find myself adding a task to just show the release name. Why not add it to the built-in deploy:info task?

Schrank commented 7 months ago

Nice idea! But stupid question: where is the release_name taken from? 😅

Propaganistas commented 7 months ago

@Schrank https://github.com/deployphp/deployer/blob/51e8e82c0726b0386d2989c42df003899d35af8a/recipe/deploy/release.php#L9-L14

It just reads the (potentially) already existing releases log. And because this file is always loaded, the definition of release_name will always be available.

Propaganistas commented 7 months ago

Added a failsafe for initial deployments