From 98867f2830a1946d71c16da91f24b282b0670190 Mon Sep 17 00:00:00 2001 From: ultimania Date: Wed, 31 May 2023 10:27:59 +0900 Subject: [PATCH] add example for origin migration --- docs/resources/repository.md | 10 ++++++++++ examples/resources/gitea_repository/resource.tf | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/resources/repository.md b/docs/resources/repository.md index 559c018..f7c9d0a 100644 --- a/docs/resources/repository.md +++ b/docs/resources/repository.md @@ -41,6 +41,16 @@ resource "gitea_repository" "mirror" { migration_service = "gitea" migration_service_auth_token = var.gitea_mirror_token } + +resource "gitea_repository" "clone" { + username = "lerentis" + name = "terraform-provider-gitea-clone" + description = "Clone of Terraform Provider" + mirror = false + migration_clone_address = "https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git" + migration_service = "gitea" + migration_service_auth_token = var.gitea_clone_token +} ``` diff --git a/examples/resources/gitea_repository/resource.tf b/examples/resources/gitea_repository/resource.tf index c6753ce..f18838b 100644 --- a/examples/resources/gitea_repository/resource.tf +++ b/examples/resources/gitea_repository/resource.tf @@ -16,3 +16,13 @@ resource "gitea_repository" "mirror" { migration_service = "gitea" migration_service_auth_token = var.gitea_mirror_token } + +resource "gitea_repository" "clone" { + username = "lerentis" + name = "terraform-provider-gitea-clone" + description = "Clone of Terraform Provider" + mirror = false + migration_clone_address = "https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git" + migration_service = "gitea" + migration_service_auth_token = var.gitea_clone_token +}