| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -14,7 +14,7 @@ This module allows you to automatically clone a repository by URL and skip if it
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = "https://github.com/coder/coder"
 | 
					 | 
					 | 
					 | 
					  url      = "https://github.com/coder/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -27,7 +27,7 @@ module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = "https://github.com/coder/coder"
 | 
					 | 
					 | 
					 | 
					  url      = "https://github.com/coder/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  base_dir = "~/projects/coder"
 | 
					 | 
					 | 
					 | 
					  base_dir = "~/projects/coder"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -41,7 +41,7 @@ To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-prov
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = "https://github.com/coder/coder"
 | 
					 | 
					 | 
					 | 
					  url      = "https://github.com/coder/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -66,7 +66,7 @@ data "coder_parameter" "git_repo" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# Clone the repository for branch `feat/example`
 | 
					 | 
					 | 
					 | 
					# Clone the repository for branch `feat/example`
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git_clone" {
 | 
					 | 
					 | 
					 | 
					module "git_clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = data.coder_parameter.git_repo.value
 | 
					 | 
					 | 
					 | 
					  url      = data.coder_parameter.git_repo.value
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -74,7 +74,7 @@ module "git_clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# Create a code-server instance for the cloned repository
 | 
					 | 
					 | 
					 | 
					# Create a code-server instance for the cloned repository
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "code-server" {
 | 
					 | 
					 | 
					 | 
					module "code-server" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/code-server/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/code-server/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  order    = 1
 | 
					 | 
					 | 
					 | 
					  order    = 1
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  folder   = "/home/${local.username}/${module.git_clone.folder_name}"
 | 
					 | 
					 | 
					 | 
					  folder   = "/home/${local.username}/${module.git_clone.folder_name}"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -98,7 +98,7 @@ Configuring `git-clone` for a self-hosted GitHub Enterprise Server running at `g
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = "https://github.example.com/coder/coder/tree/feat/example"
 | 
					 | 
					 | 
					 | 
					  url      = "https://github.example.com/coder/coder/tree/feat/example"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  git_providers = {
 | 
					 | 
					 | 
					 | 
					  git_providers = {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -116,7 +116,7 @@ To GitLab clone with a specific branch like `feat/example`
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = "https://gitlab.com/coder/coder/-/tree/feat/example"
 | 
					 | 
					 | 
					 | 
					  url      = "https://gitlab.com/coder/coder/-/tree/feat/example"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -127,7 +127,7 @@ Configuring `git-clone` for a self-hosted GitLab running at `gitlab.example.com`
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source   = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version  = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version  = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url      = "https://gitlab.example.com/coder/coder/-/tree/feat/example"
 | 
					 | 
					 | 
					 | 
					  url      = "https://gitlab.example.com/coder/coder/-/tree/feat/example"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  git_providers = {
 | 
					 | 
					 | 
					 | 
					  git_providers = {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -147,7 +147,7 @@ For example, to clone the `feat/example` branch:
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source      = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source      = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version     = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version     = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id    = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id    = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url         = "https://github.com/coder/coder"
 | 
					 | 
					 | 
					 | 
					  url         = "https://github.com/coder/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  branch_name = "feat/example"
 | 
					 | 
					 | 
					 | 
					  branch_name = "feat/example"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -163,7 +163,7 @@ For example, this will clone into the `~/projects/coder/coder-dev` folder:
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					```tf
 | 
					 | 
					 | 
					 | 
					```tf
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
					 | 
					 | 
					 | 
					module "git-clone" {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  source      = "registry.coder.com/modules/git-clone/coder"
 | 
					 | 
					 | 
					 | 
					  source      = "registry.coder.com/modules/git-clone/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  version     = "1.0.12"
 | 
					 | 
					 | 
					 | 
					  version     = "1.0.18"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  agent_id    = coder_agent.example.id
 | 
					 | 
					 | 
					 | 
					  agent_id    = coder_agent.example.id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  url         = "https://github.com/coder/coder"
 | 
					 | 
					 | 
					 | 
					  url         = "https://github.com/coder/coder"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  folder_name = "coder-dev"
 | 
					 | 
					 | 
					 | 
					  folder_name = "coder-dev"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |