Skip to content

Commit 34de59d

Browse files
committed
adding docs page
1 parent c7aa1d4 commit 34de59d

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: "gitlab"
3+
page_title: "GitLab: gitlab_project_mirror"
4+
sidebar_current: "docs-gitlab-resource-project_mirror"
5+
description: |-
6+
Adds a target to a projects remote mirrors.
7+
---
8+
9+
# gitlab\_project_mirror
10+
11+
This resource allows you to add a mirror target for the repository, all changes will be synced to the remote target.
12+
13+
## Example Usage
14+
15+
```hcl
16+
resource "gitlab_project_mirror" "foo" {
17+
project = "1"
18+
url = "https://username:[email protected]/org/repository.git"
19+
}
20+
```
21+
22+
## Argument Reference
23+
24+
The following arguments are supported:
25+
26+
* `project` - (Required) The id of the project.
27+
28+
* `url` - (Required) The URL of the remote repository to be mirrored.
29+
30+
* `enabled` - Determines if the mirror is enabled.
31+
32+
* `only_protected_branches` - Determines if only protected branches are mirrored.
33+
34+
* `keep_divergent_refs` - Determines if divergent refs are skipped.
35+
36+
## Import
37+
38+
GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g.
39+
40+
41+
```
42+
$ terraform import gitlab_project_mirror.foo "12345:1337"
43+
```

0 commit comments

Comments
 (0)