diff --git a/Makefile b/Makefile index e97dee5..621ddb1 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) GOFMT ?= gofmt -s -VERSION = 0.7.4 +VERSION = 0.8.0 test: fmt-check go test -i $(TEST) || exit 1 diff --git a/README.md b/README.md index 9777a48..610582a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ terraform { required_providers { gitea = { source = "Lerentis/gitea" - version = "0.7.4" + version = "0.8.0" } } } diff --git a/docs/index.md b/docs/index.md index f1cf291..53c4509 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,7 +17,7 @@ terraform { required_providers { gitea = { source = "Lerentis/gitea" - version = "0.7.4" + version = "0.8.0" } } } diff --git a/examples/provider.tf b/examples/provider.tf index d578540..ec315cc 100644 --- a/examples/provider.tf +++ b/examples/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { gitea = { source = "terraform.local/lerentis/gitea" - version = "0.7.4" + version = "0.8.0" } } } diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 45582f9..2f9e7ac 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { gitea = { source = "Lerentis/gitea" - version = "0.7.4" + version = "0.8.0" } } } diff --git a/examples/resources/gitea_git_hook/resource.tf b/examples/resources/gitea_git_hook/resource.tf new file mode 100644 index 0000000..a11ee11 --- /dev/null +++ b/examples/resources/gitea_git_hook/resource.tf @@ -0,0 +1,15 @@ +resource "gitea_org" "test_org" { + name = "test-org" +} + +resource "gitea_repository" "org_repo" { + username = gitea_org.test_org.name + name = "org-test-repo" +} + +resource "gitea_git_hook" "org_repo_post-receive" { + name = "post-receive" + user = gitea_org.test_org.name + repo = gitea_repository.org_repo.name + content = file("${path.module}/post-receive.sh") +} \ No newline at end of file diff --git a/scripts/docker-compose.yaml b/scripts/docker-compose.yaml index aef83e2..c128cd3 100644 --- a/scripts/docker-compose.yaml +++ b/scripts/docker-compose.yaml @@ -6,7 +6,7 @@ networks: services: server: - image: gitea/gitea:1.16.8 + image: gitea/gitea:1.17.1 container_name: gitea environment: - USER_UID=1000