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

Parametrise working dir for hook #54

Open
akranga opened this issue Jul 31, 2023 · 1 comment
Open

Parametrise working dir for hook #54

akranga opened this issue Jul 31, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@akranga
Copy link
Contributor

akranga commented Jul 31, 2023

Related to #23. User wants to parametrise working directory for hook execution....

Proposing following format:

  1. When user defines as the following
components:
- name: authn
  # ...
  hooks:
  - file: bin/authn-post-deploy
    triggers: [post-deploy]

Then the bin/authn-post-deploy executed from the directory of authn component

  1. When user defines a workDir argument as the following
hooks:
- file: bin/authn-post-deploy
  triggers: [post-deploy]
  workDir: .

...then the bin/authn-post-deploy script is executed from the same directory as hub.yaml, same as the value of $HUB_BASE_DIR

  1. When user defines a worker argument as the following
hooks:
- file: bin/authn-post-deploy
  triggers: [post-deploy]
  workDir: bin

...then the bin/authn-post-deploy script is executed from the same directory as bin/authn-post-deploy, the same place as $HUB_BASE_DIR/bin

@akranga akranga added the enhancement New feature or request label Jul 31, 2023
@akranga akranga self-assigned this Aug 1, 2023
@akranga akranga added the help wanted Extra attention is needed label Sep 5, 2023
@akranga
Copy link
Contributor Author

akranga commented Sep 5, 2023

Moving to the todo section. Currently there is no progress here

@TheRealSpaceShip TheRealSpaceShip changed the title Parametrise working dir for web hook Parametrise working dir for hook Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant