fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Steve McMaster 2023-12-13 20:46:41 -05:00
parent 6cd7a26575
commit 2370d7437c

View File

@ -131,7 +131,7 @@ data "coder_parameter" "git_user_name" {
name = "git_user_name" name = "git_user_name"
display_name = "Git user.name" display_name = "Git user.name"
description = "Name used for git commits" description = "Name used for git commits"
default = "${data.coder_workspace.me.owner}" default = data.coder_workspace.me.owner
type = "string" type = "string"
icon = "https://s3.mcmaster.io/images/programmer.png" icon = "https://s3.mcmaster.io/images/programmer.png"
mutable = true mutable = true
@ -141,7 +141,7 @@ data "coder_parameter" "git_email" {
name = "git_email" name = "git_email"
display_name = "Git user.email" display_name = "Git user.email"
description = "Email used for git commits" description = "Email used for git commits"
default = "${data.coder_workspace.me.owner_email}" default = data.coder_workspace.me.owner_email
type = "string" type = "string"
icon = "https://s3.mcmaster.io/images/email.png" icon = "https://s3.mcmaster.io/images/email.png"
mutable = true mutable = true
@ -182,8 +182,8 @@ resource "coder_agent" "main" {
[ ! -f ~/.profile ] && [ -f /etc/skel/.profile ] && cp /etc/skel/.profile $HOME [ ! -f ~/.profile ] && [ -f /etc/skel/.profile ] && cp /etc/skel/.profile $HOME
[ ! -f ~/.bashrc ] && [ -f /etc/skel/.bashrc ] && cp /etc/skel/.bashrc $HOME [ ! -f ~/.bashrc ] && [ -f /etc/skel/.bashrc ] && cp /etc/skel/.bashrc $HOME
git config --global user.name ${data.coder_workspace.me.owner} git config --global user.name ${data.coder_parameter.git_user_name.value}
git config --global user.email ${data.coder_workspace.me.owner_email} git config --global user.email ${data.coder_parameter.git_email.value}
{% endblock %} {% endblock %}
{% block post_startup_script_setup_home %} {% block post_startup_script_setup_home %}