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

KAMAL_ROLE is never set in the hooks #1336

Open
rahearn opened this issue Jan 5, 2025 · 2 comments
Open

KAMAL_ROLE is never set in the hooks #1336

rahearn opened this issue Jan 5, 2025 · 2 comments

Comments

@rahearn
Copy link

rahearn commented Jan 5, 2025

KAMAL_ROLE is never set in the hooks.

I've tried:

  • kamal deploy -d staging -r web
  • kamal deploy -d staging -r worker
  • kamal deploy -d staging

I would have expected that it would be unset in the last of those, but set to the value of the -r argument in the first two.

@jackm767
Copy link

I've also just run into this, but with destination. Ran kamal deploy -d staging and printed env in my pre-deploy script and I see a number of KAMAL_ variables but no KAMAL_DESTINATION.

Do you see the same?

@rahearn
Copy link
Author

rahearn commented Feb 1, 2025

@jackm767 No, I see KAMAL_DESTINATION=staging when I run kamal deploy -d staging and a pre-build hook of:

env
exit 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants