diff --git a/.github/workflows/arm-rhel-pipeline.yml b/.github/workflows/arm-rhel-pipeline.yml new file mode 100644 index 0000000..50872a7 --- /dev/null +++ b/.github/workflows/arm-rhel-pipeline.yml @@ -0,0 +1,29 @@ +name: ARM RHEL AMI Pipeline + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + runs-on: [ self-hosted ] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Terraform + uses: hashicorp/setup-terraform@v1 + with: + terraform_version: 1.1.0 + + - name: Terraform Init + run: terraform init + + - name: Terraform Plan + run: terraform plan + + - name: Terraform Apply + run: terraform apply -auto-approve \ No newline at end of file diff --git a/backend.tf b/backend.tf index aa514fb..96d1478 100644 --- a/backend.tf +++ b/backend.tf @@ -5,4 +5,4 @@ terraform { region = "us-gov-east-1" dynamodb_table = "tf_remote_state" } -} +} \ No newline at end of file diff --git a/main.tf b/main.tf index 055d6ae..7f1fc05 100644 --- a/main.tf +++ b/main.tf @@ -329,6 +329,24 @@ module "windows-ami-build" { pull_request_bypassers = local.pull_request_bypassers } +# RHEL Pipeline - Testing Braxton +module "arm_rhel_image_pipeline" { + source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" + github_repo_description = "ARM-based RHEL AMI Pipeline" + repo_org = "arnol377" + name = "arm-rhel-image-pipeline" + github_repo_topics = [ + "terraform" + ] + is_template = true + force_name = true + create_codeowners = false + enforce_prs = false + collaborators = local.collaborators + admin_teams = [github_team.team.name] +} + + # image-pipeline-goss-testing resource "aws_codecommit_repository" "goss-testing" {