Added the ability to change git.config.email
This commit is contained in:
@@ -43,12 +43,12 @@ resource "coder_agent" "main" {
|
|||||||
# workspace. Note that they take precedence over configuration defined in ~/.gitconfig!
|
# workspace. Note that they take precedence over configuration defined in ~/.gitconfig!
|
||||||
# You can remove this block if you'd prefer to configure Git manually or using
|
# You can remove this block if you'd prefer to configure Git manually or using
|
||||||
# dotfiles. (see docs/dotfiles.md)
|
# dotfiles. (see docs/dotfiles.md)
|
||||||
env = {
|
# env = {
|
||||||
GIT_AUTHOR_NAME = coalesce(data.coder_workspace_owner.me.full_name, data.coder_workspace_owner.me.name)
|
# GIT_AUTHOR_NAME = coalesce(data.coder_workspace_owner.me.full_name, data.coder_workspace_owner.me.name)
|
||||||
GIT_AUTHOR_EMAIL = "${data.coder_workspace_owner.me.email}"
|
# GIT_AUTHOR_EMAIL = "${data.coder_workspace_owner.me.email}"
|
||||||
GIT_COMMITTER_NAME = coalesce(data.coder_workspace_owner.me.full_name, data.coder_workspace_owner.me.name)
|
# GIT_COMMITTER_NAME = coalesce(data.coder_workspace_owner.me.full_name, data.coder_workspace_owner.me.name)
|
||||||
GIT_COMMITTER_EMAIL = "${data.coder_workspace_owner.me.email}"
|
# GIT_COMMITTER_EMAIL = "${data.coder_workspace_owner.me.email}"
|
||||||
}
|
# }
|
||||||
|
|
||||||
# The following metadata blocks are optional. They are used to display
|
# The following metadata blocks are optional. They are used to display
|
||||||
# information about your workspace in the dashboard. You can remove them
|
# information about your workspace in the dashboard. You can remove them
|
||||||
@@ -122,8 +122,9 @@ module "vscode-web" {
|
|||||||
module "git-config" {
|
module "git-config" {
|
||||||
count = data.coder_workspace.me.start_count
|
count = data.coder_workspace.me.start_count
|
||||||
source = "registry.coder.com/coder/git-config/coder"
|
source = "registry.coder.com/coder/git-config/coder"
|
||||||
version = "1.0.31"
|
version = "1.0.32"
|
||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
|
allow_email_change = true
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "docker_volume" "home_volume" {
|
resource "docker_volume" "home_volume" {
|
||||||
|
|||||||
Reference in New Issue
Block a user