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.