You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/git-clone
Muhammad Atif Ali b968a2aa22
feat: add version to module docs (#122)
1 year ago
..
README.md feat: add version to module docs (#122) 1 year ago
main.test.ts feat: add test framework (#48) 2 years ago
main.tf fix(git-clone): update the required provider version (#95) 2 years ago
run.sh Add formatting check for shell scripts (#106) 1 year ago

README.md

display_name description icon maintainer_github verified tags
Git Clone Clone a Git repository by URL and skip if it exists. ../.icons/git.svg coder true
git
helper

Git Clone

This module allows you to automatically clone a repository by URL and skip if it exists in the path provided.

module "git-clone" {
  source   = "registry.coder.com/modules/git-clone/coder"
  version  = "1.0.0"
  agent_id = coder_agent.example.id
  url      = "https://github.com/coder/coder"
}

To use with Git Authentication, add the provider by ID to your template:

data "coder_git_auth" "github" {
  id = "github"
}

Examples

Custom Path

module "git-clone" {
  source   = "registry.coder.com/modules/git-clone/coder"
  version  = "1.0.0"
  agent_id = coder_agent.example.id
  url      = "https://github.com/coder/coder"
  path     = "~/projects/coder/coder"
}