Initial Implementation of Github Repo Env Secrets

This commit is contained in:
2024-10-20 02:41:11 -03:00
parent 95eba14975
commit 730cc1687e
6 changed files with 108 additions and 1 deletions

20
main.tf
View File

@@ -14,6 +14,10 @@ terraform {
source = "HideyoshiNakazone/yoshik3s"
version = "1.1.0"
}
github = {
source = "integrations/github"
version = "6.3.1"
}
}
}
@@ -31,6 +35,11 @@ provider "yoshik3s" {
# No configuration needed
}
provider "github" {
owner = var.github_owner
token = var.github_token
}
### MODULES
@@ -79,4 +88,15 @@ module "kubernetes" {
master_server_address = module.instances.pool_master_public_ip
cluster_main_node = module.instances.pool_master_instance
cluster_worker_node = module.instances.pool_worker_instances
}
module "github" {
source = "./github"
providers = {
github = github
}
environment_name = var.environment_name
github_owner = var.github_owner
github_repository = var.github_repository
cluster_kubeconfig = module.kubernetes.cluster_kubeconfig
}