Skip to content

Commit

Permalink
Update terraform_apply.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Sep 23, 2024
1 parent 1b1886b commit f470ae6
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/terraform_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ jobs:
# This workflow contains a single job called "build"
Apply:
# The type of runner that the job will run on
runs-on: [ automation-repos ]
runs-on: [ "229685449397" ]
env:
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"
AWS_DEFAULT_REGION: "${{ vars.AWS_DEFAULT_REGION }}"
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"


# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3


- uses: CSVD/gh-actions-setup-node@v3
with:
node-version: 16
Expand All @@ -35,15 +30,6 @@ jobs:
with:
terraform_wrapper: false
terraform_version: ${{ vars.terraform_version }}

- name: Terraform Format
id: fmt
run: |
terraform fmt -check
- name: Autoformat Halt
if: env.auto_format == 'true'
run: exit 1

- name: Terraform Init
id: init
Expand All @@ -53,7 +39,11 @@ jobs:
id: validate
run: terraform validate

- name: Terraform Apply
- name: Terraform Plan
id: plan
run: terraform apply -auto-approve
continue-on-error: true
run: terraform validate

# - name: Terraform Apply
# id: plan
# run: terraform apply -auto-approve
# continue-on-error: true

0 comments on commit f470ae6

Please sign in to comment.