deployer icon indicating copy to clipboard operation
deployer copied to clipboard

YAML: allow to give description to groups tasks

Open antonmedv opened this issue 1 year ago • 1 comments

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

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

antonmedv avatar Jul 26 '23 12:07 antonmedv

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

adpeyre avatar Aug 03 '23 15:08 adpeyre