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

23
github/github.tf Normal file
View File

@@ -0,0 +1,23 @@
terraform {
required_providers {
github = {
source = "integrations/github"
version = "6.3.1"
}
}
}
data "github_user" "current" {
username = ""
}
data "github_repository" "infra_hideyoshi_com" {
full_name = "${var.github_owner}/${var.github_repository}"
}
resource "github_actions_environment_secret" "cluster_kubeconfig" {
repository = data.github_repository.infra_hideyoshi_com.name
environment = var.environment_name
secret_name = "KUBECONFIG"
plaintext_value = var.cluster_kubeconfig
}