Where are build releases run?

I’m lost. I don’t know how to proceed. There’s either a bug on fly.io where ephemeral machines generated by the release_command are not setting the environment correctly (like on this issue), or your documentation is wrong here.
Or I’m doing something completely wrong and I can’t figure it out.