deployphp / deployer

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

YAML: allow to give description to groups tasks #3656

Open antonmedv opened 1 year ago

antonmedv commented 1 year ago

I have this task (group) defined via YAML:

tasks:
  deploy:
    - deploy:prepare
    - deploy:publish

after:
  deploy:prepare:
    - typo3:create_default_folders
    - typo3:update:databaseschema
    - typo3:flush:caches
    - typo3:setup:extensions
    - typo3:flush:caches

  deploy:failed:
    - deploy:unlock

I'm trying to find a way to set the description of this task group so that deployer dep list shows a nice description and not only the key of the task.

Is there any way to do this?

Originally posted by @oliverklee in https://github.com/deployphp/deployer/discussions/3504

Upvote & Fund

Fund with Polar

adpeyre commented 1 year ago

Maybe you can try something like that :

tasks:
  deploy:
    - deploy:prepare
    - deploy:publish

after:
  deploy:prepare:
    desc: 'description'
    script: # THIS WILL NOT WORK
       - typo3:create_default_folders
      - typo3:update:databaseschema
      - typo3:flush:caches
      - typo3:setup:extensions
      - typo3:flush:caches

  deploy:failed:
    - deploy:unlock