[RESOLVED] [Git] Unable to auto-detect email address

Hey! I'm trying to make an initial commit to a specific repo during my Docker image build, but it outputs me this error:
Author identity unknown

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'coder@ndi-2022.(none)')
Author identity unknown

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'coder@ndi-2022.(none)')
PS: ndi-2022 is the name of my workspace I then tried to remove this part from my Dockerfile and to execute it directly inside my workspace, but got the same result each time i want to commit. What am i missing here? Best regards.
3 Replies
TikTok Rizz Party
PS: i've already set up my git provider (Github) for my coder instance ->
CODER_GITAUTH_0_ID=primary-github
CODER_GITAUTH_0_TYPE=github
CODER_GITAUTH_0_CLIENT_ID=<my_client_id>
CODER_GITAUTH_0_CLIENT_SECRET=<my_secret>
CODER_GITAUTH_0_ID=primary-github
CODER_GITAUTH_0_TYPE=github
CODER_GITAUTH_0_CLIENT_ID=<my_client_id>
CODER_GITAUTH_0_CLIENT_SECRET=<my_secret>
------------------------ RESOLVED i've forgotten to set the git related env variables in the main.tf file
Phorcys
Phorcys2y ago
aight, marking as resolved using the bot (/resolve)
Codercord
Codercord2y ago
Marked the thread as resolved.
Want results from more Discord servers?
Add your server