Update README

pull/46/head
Kyle Carberry 2 years ago
parent 928380bc41
commit cded504ff2

@ -8,39 +8,31 @@ tags: [git, helper]
--- ---
# Git Clone # Git Clone
This module allows you to automatically clone a repository by URL and skip if it This module allows you to automatically clone a repository by URL and skip if it exists in the path provided.
exists in the path provided.
## Examples ```hcl
module "git-clone" {
1. Add only GPU zones in the US West 1 region: source = "https://registry.coder.com/modules/git-clone"
url = "https://github.com/coder/coder"
}
```
```hcl To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-providers), add the provider by ID to your template:
module "gcp_region" {
source = "https://registry.coder.com/modules/gcp-region"
default = ["us-west1-a"]
regions = ["us-west1"]
gpu_only = false
}
```
2. Add all zones in the Europe West region: ```hcl
data "coder_git_auth" "github" {
id = "github"
}
```
```hcl ## Examples
module "gcp_region" {
source = "https://registry.coder.com/modules/gcp-region"
regions = ["europe-west"]
single_zone_per_region = false
}
```
3. Add a single zone from each region in US and Europe that laos has GPUs ### Custom Path
```hcl ```hcl
module "gcp_region" { module "git-clone" {
source = "https://registry.coder.com/modules/gcp-region" source = "https://registry.coder.com/modules/git-clone"
regions = ["us", "europe"] url = "https://github.com/coder/coder"
gpu_only = true path = "~/projects/coder/coder"
single_zone_per_region = true }
} ```
```

Loading…
Cancel
Save