Initial Implementation of Github Repo Env Secrets
This commit is contained in:
20
main.tf
20
main.tf
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user