From 02c57643a87114e9c806a88a8648575c246a5958 Mon Sep 17 00:00:00 2001 From: Stephen Kirby Date: Tue, 26 Sep 2023 01:06:24 +0000 Subject: [PATCH] fixed suggested changes from atif --- git-config/README.md | 8 ++++---- git-config/main.tf | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/git-config/README.md b/git-config/README.md index 26c6e37..d7cb59d 100644 --- a/git-config/README.md +++ b/git-config/README.md @@ -19,8 +19,8 @@ The credentials can be populated from the workspace owner's information. ```hcl module "git-config" { - source = "git::https://github.com/coder/modules.git//git-config?ref=git-config" - agent_id = coder_agent.main.id + source = "https://registry.coder.com/modules/git-config" + agent_id = coder_agent.example.id username = data.coder_workspace.me.owner user_email = data.coder_workspace.me.owner_email } @@ -31,8 +31,8 @@ Credentials can also be set manually. ```hcl module "git-config" { - source = "git::https://github.com/coder/modules.git//git-config?ref=git-config" - agent_id = coder_agent.main.id + source = "https://registry.coder.com/modules/git-config" + agent_id = coder_agent.example.id username = "michael" user_email = "michael@example.com" } diff --git a/git-config/main.tf b/git-config/main.tf index fde55a6..8ded54a 100644 --- a/git-config/main.tf +++ b/git-config/main.tf @@ -24,13 +24,13 @@ variable "user_email" { description = "The email of the Coder workspace owner." } -resource "coder_script" "personalize" { +resource "coder_script" "git_config" { agent_id = var.agent_id script = templatefile("${path.module}/run.sh", { CODER_USERNAME = var.username, CODER_EMAIL = var.user_email }) display_name = "Git Config" - icon = "/emojis/1f58c.png" + icon = "/icon/git.svg" run_on_start = true }