From 7325265c481db829e03df0657fae9278dc4cb843 Mon Sep 17 00:00:00 2001 From: roknpublic Date: Fri, 6 Sep 2024 10:11:22 -0700 Subject: [PATCH 1/4] Initial commit --- .gitignore | 37 +++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2faf43d --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Ignore transient lock info files created by terraform apply +.terraform.tfstate.lock.info + +# Include override files you do wish to add to version control using negated pattern +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +.terraformrc +terraform.rc diff --git a/README.md b/README.md new file mode 100644 index 0000000..08a4172 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# terraform-github-repo +Terraform Module From fafd6e902f4c80e9249d93379d34fe19200abe9f Mon Sep 17 00:00:00 2001 From: roknpublic Date: Fri, 6 Sep 2024 10:15:18 -0700 Subject: [PATCH 2/4] Add .github/workflows/terraform.yaml --- .github/workflows/terraform.yaml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/terraform.yaml diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml new file mode 100644 index 0000000..3c54a0d --- /dev/null +++ b/.github/workflows/terraform.yaml @@ -0,0 +1,33 @@ +name: "Gtag" + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +jobs: + terraform: + uses: HappyPathway/centralized-actions/.github/workflows/terraform-test.yml@main + with: + terraform_version: ${{vars.TERRAFORM_VERSION}} + terraform_api: ${{vars.TERRAFORM_API}} + github_username: ${{vars.GH_USERNAME}} + github_email: ${{vars.GH_EMAIL}} + github_org: ${{ vars.GH_ORG }} + secrets: + TFE_TOKEN: ${{ secrets.TFE_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} + + gtag: + if: ${{ github.event_name }} != "pull_request" + needs: terraform + uses: HappyPathway/centralized-actions/.github/workflows/gtag.yml@main + with: + patch: true + github_org: ${{ vars.GH_ORG }} + github_username: ${{ vars.GH_USERNAME }} + github_email: ${{ vars.GH_EMAIL }} + secrets: + GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file From 0041c007499c5af314f6150eae205b82f402ee7e Mon Sep 17 00:00:00 2001 From: roknpublic Date: Fri, 6 Sep 2024 10:15:26 -0700 Subject: [PATCH 3/4] Add .github/workflows/modtest-dev.yaml --- .github/workflows/modtest-dev.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/modtest-dev.yaml diff --git a/.github/workflows/modtest-dev.yaml b/.github/workflows/modtest-dev.yaml new file mode 100644 index 0000000..f7e89d3 --- /dev/null +++ b/.github/workflows/modtest-dev.yaml @@ -0,0 +1,26 @@ +name: "ModTest: dev" + +on: + pull_request: + +jobs: + modtest: + if : ${{ github.event_name }} == "pull_request" + uses: HappyPathway/centralized-actions/.github/workflows/modtest.yml@main + with: + workspace: dev + workspace_repo: github-repos + workspace_branch: main + repo_clone_type: https + mod_source: repo/github + + github_server: ${{vars.GH_SERVER}} + github_org: ${{ github.repository_owner }} + branch: ${{ github.head_ref }} + terraform_version: ${{vars.TERRAFORM_VERSION}} + terraform_api_token_name: ${{ vars.TERRAFORM_API_TOKEN_NAME }} + terraform_api: ${{vars.TERRAFORM_API}} + + secrets: + TFE_TOKEN: ${{ secrets.TFE_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file From c331c44911f9bd39b8d56ca1a89270e3278053bd Mon Sep 17 00:00:00 2001 From: roknpublic Date: Fri, 6 Sep 2024 10:15:31 -0700 Subject: [PATCH 4/4] Add CODEOWNERS --- CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..b3ac177 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,3 @@ +#### How to use this file: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners +# These owners will be the default owners for everything in the repo. Unless a later match takes precedence +* @RoknSound-Public-Modules/terraform-reviewers