diff --git a/infrastructure/tofu/.terraform.lock.hcl b/infrastructure/tofu/.terraform.lock.hcl index 3d59a33..b85e74f 100644 --- a/infrastructure/tofu/.terraform.lock.hcl +++ b/infrastructure/tofu/.terraform.lock.hcl @@ -1,6 +1,14 @@ # This file is maintained automatically by "tofu init". # Manual edits may be lost in future updates. +provider "registry.opentofu.org/adyxax/forgejo" { + version = "1.1.0" + constraints = "1.1.0" + hashes = [ + "h1:xa2K1rn2OzQofizev01UBKEgq4WHo3EM5/fiPCxFL/E=", + ] +} + provider "registry.opentofu.org/hashicorp/aws" { version = "6.2.0" constraints = "6.2.0" diff --git a/infrastructure/tofu/main.tf b/infrastructure/tofu/main.tf index ced2b09..682f220 100644 --- a/infrastructure/tofu/main.tf +++ b/infrastructure/tofu/main.tf @@ -8,8 +8,12 @@ module "aws_iam_ci_user" { aws.root = aws.all["root"] aws.tests = aws.all["tests"] } - source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-ci-user?depth=1&ref=1.0.1" + source = "git::ssh://git@git.adyxax.org/adyxax/tofu-module-aws-iam-ci-user?depth=1&ref=1.1.0" + forgejo_repository = { + name = local.name + owner = "adyxax" + } name = local.name tests_policy_statements = jsonencode([ { diff --git a/infrastructure/tofu/providers.tf b/infrastructure/tofu/providers.tf index 8b42979..a312874 100644 --- a/infrastructure/tofu/providers.tf +++ b/infrastructure/tofu/providers.tf @@ -9,7 +9,11 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.91.0" + version = "6.2.0" + } + forgejo = { + source = "adyxax/forgejo" + version = "1.1.0" } } } @@ -22,3 +26,7 @@ provider "aws" { profile = each.key region = "eu-west-3" } + +provider "forgejo" { + base_uri = "https://git.adyxax.org/" +}