Files
modules/git-clone
Scott 5b3bd80634 fix(git-clone): change to work with volumes fixes #79 (#80)
* fix(git-clone): change to work with volumes fixes #79

* Update git-clone/run.sh

Co-authored-by: Kyle Carberry <kyle@carberry.com>

---------

Co-authored-by: Muhammad Atif Ali <matifali@live.com>
Co-authored-by: Kyle Carberry <kyle@carberry.com>
2023-10-09 16:57:02 +03:00
..
2023-09-25 23:17:04 -05:00
2023-10-04 00:39:50 +03:00
2023-09-27 17:15:48 +03: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"
    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   = "https://registry.coder.com/modules/git-clone"
    agent_id = coder_agent.example.id
    url      = "https://github.com/coder/coder"
    path     = "~/projects/coder/coder"
}