If we understand correctly, it appears you are trying to have the workdir environment variable set to the same location the executable will run from.
There are 2 things to keep in mind:
game.hcl will set values in Consul that will later be used by the template (in this case the tutorial executable path).
tutorail.nomad.tmpl then use that value as the command to run.
From what we are seeing, you seem to be using the local template.
Since you are using the local template, there is no artifact stanza. One can be found on the cloud template.
If indeed the goal is to have the workdir environment set when running the game, then this can be set in
tutorial.nomad.tmpl, in the “env” section.
TUTORIAL_CWD environment seems to be containing the location where the app is run.
Additionally, the executable is not copied in the local cluster, it is run in its original location.
Please let us know if this helps.