Files
modules/git-clone
Kyle Carberry 84bad159a3 feat: add git clone module (#46)
* feat: add `git-clone` module

* Fix script expansion for personalize

* Update README
2023-09-25 19:27:53 -05:00
..
2023-09-25 19:27:53 -05:00
2023-09-25 19:27:53 -05:00
2023-09-25 19:27:53 -05:00

display_name, description, icon, maintainer_github, verified, tags
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 = "https://registry.coder.com/modules/git-clone"
    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 = "https://registry.coder.com/modules/git-clone"
    url = "https://github.com/coder/coder"
    path = "~/projects/coder/coder"
}