File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments