Use build arg in docker action to correctly pass git commit SHA (#3940)
* use env variables through docker args
* remove quotes
* use an output instead
* try that again
* write the variables to .env
* rm unused
* use short sha
* remove test branch