Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pre- and post- hooks in scripts #1198

Open
AlexSkrypnyk opened this issue Feb 19, 2024 · 1 comment
Open

Add support for pre- and post- hooks in scripts #1198

AlexSkrypnyk opened this issue Feb 19, 2024 · 1 comment
Assignees
Labels
Type: Feature Issue is a new feature request
Milestone

Comments

@AlexSkrypnyk
Copy link
Member

AlexSkrypnyk commented Feb 19, 2024

Allow to run custom scripts before and after scripts operations.

  1. Need to assess and identify which DrevOps scripts needs this.
  2. Need to come up with a short code snippet to handle this. Desirably to make the inclusion script to use the current script name as a base.

Examples:

sctipts/drevops/provision.sh would automatically discover:

scripts/hooks/pre-provision.sh
scripts/hooks/pre-provision-10.sh
scripts/hooks/pre-provision-20.sh
scripts/hooks/pre-provision-30.sh

and

scripts/hooks/post-provision.sh
scripts/hooks/post-provision-10.sh
scripts/hooks/post-provision-20.sh
scripts/hooks/post-provision-30.sh

The scripts/hooks directory may be something different:
scripts/hooks
scripts/custom
scripts

@AlexSkrypnyk AlexSkrypnyk added this to the 1.20 milestone Feb 28, 2024
@AlexSkrypnyk AlexSkrypnyk added the Type: Feature Issue is a new feature request label Feb 28, 2024
@AlexSkrypnyk
Copy link
Member Author

@sonnykt @richardgaunt
Could you please review the above and put your ideas around naming and the usefulness of this feature.

@AlexSkrypnyk AlexSkrypnyk added the Type: Idea Idea that requires additional discussion label Feb 28, 2024
@AlexSkrypnyk AlexSkrypnyk removed the Type: Idea Idea that requires additional discussion label Apr 8, 2024
@AlexSkrypnyk AlexSkrypnyk self-assigned this Apr 8, 2024
@AlexSkrypnyk AlexSkrypnyk modified the milestones: 1.20, 2.0 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Issue is a new feature request
Projects
Status: To do for current release
Development

No branches or pull requests

1 participant