From 2ffa5b92c6086bcd1fc19e9c294386c203aa844b Mon Sep 17 00:00:00 2001 From: yadavprakash Date: Thu, 17 Jun 2021 19:16:12 +0530 Subject: [PATCH] update module tags --- .github/workflows/terraform.yml | 73 +++++++++++++++++---------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index c110491..abbca5d 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -4,75 +4,78 @@ on: branches: - master -jobs: - fmt: - name: 'terraform fmt' + terraform: + name: 'Terraform' runs-on: ubuntu-latest steps: - name: 'Checkout' - uses: actions/checkout@v2.3.4 + uses: actions/checkout@master + + - name: Configure AWS Credentials + uses: clouddrove/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }} + aws-region: us-east-2 - name: 'Terraform Format' uses: 'clouddrove/github-actions@v7.0' with: actions_subcommand: 'fmt' - - name: 'Terraform Format' + + - name: 'Terraform init Public-subnet' uses: 'clouddrove/github-actions@v7.0' with: - actions_subcommand: 'fmt' + actions_subcommand: 'init' + tf_actions_working_dir: ./_example/public-subnet - validate: - name: 'terraform validate' - runs-on: ubuntu-latest - steps: - - name: 'Checkout' - uses: actions/checkout@v2.3.4 + - name: 'Terraform validate Public-subnet' + uses: 'clouddrove/github-actions@v7.0' + with: + actions_subcommand: 'validate' + tf_actions_working_dir: ./_example/public-subnet - - name: 'Configure AWS Credentials' - uses: clouddrove/configure-aws-credentials@v1 + - name: 'Terraform plan Public-subnet' + uses: 'clouddrove/github-actions@v7.0' with: - aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }} - aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }} - aws-region: us-east-2 + actions_subcommand: 'plan' + tf_actions_working_dir: ./_example/public-subnet - - name: 'Terraform init' + - name: 'Terraform init Private-subnet' uses: 'clouddrove/github-actions@v7.0' with: actions_subcommand: 'init' tf_actions_working_dir: ./_example/private-subnet - - name: 'Terraform validate' + - name: 'Terraform validate Private-subnet' uses: 'clouddrove/github-actions@v7.0' with: actions_subcommand: 'validate' tf_actions_working_dir: ./_example/private-subnet - plan: - name: 'terraform plan' - runs-on: ubuntu-latest - steps: - - name: 'Checkout' - uses: actions/checkout@v2.3.4 + - name: 'Terraform plan Private-subnet' + uses: 'clouddrove/github-actions@v7.0' + with: + actions_subcommand: 'plan' + tf_actions_working_dir: ./_example/private-subnet - - name: 'Terraform init' + - name: 'Terraform init Public-Private-subnet' uses: 'clouddrove/github-actions@v7.0' with: actions_subcommand: 'init' - tf_actions_working_dir: ./_example/private-subnet + tf_actions_working_dir: ./_example/public-private-subnet - - name: 'Configure AWS Credentials' - uses: clouddrove/configure-aws-credentials@v1 + - name: 'Terraform validate Public-Private-subnet' + uses: 'clouddrove/github-actions@v7.0' with: - aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }} - aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }} - aws-region: us-east-2 + actions_subcommand: 'validate' + tf_actions_working_dir: ./_example/public-private-subnet - - name: 'Terraform plan' + - name: 'Terraform plan Public-Private-subnet' uses: 'clouddrove/github-actions@v7.0' with: actions_subcommand: 'plan' - tf_actions_working_dir: ./_example/private-subnet - + tf_actions_working_dir: ./_example/public-private-subnet pre-commit: name: 'Pre-Commit'