Skip to content

Commit

Permalink
Iterating GH Action Mon Jan 6 03:17:23 PM EST 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm committed Jan 6, 2025
1 parent e958858 commit 64ebc53
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy-to-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,17 @@ jobs:
- name: TF init
run: |
pushd ${GITHUB_WORKSPACE}/terraform/${{ inputs.environment }}
terraform init -reconfigure -backend-config="./backend_${{ inputs.environment }}.config" || echo "Failed" && exit
terraform init -backend-config="./backend_${{ inputs.environment }}.config" || echo "Failed" && exit
popd
- name: TF plan
run: |
pushd ${GITHUB_WORKSPACE}/terraform/${{ inputs.environment }}
make plan
popd
uses: dflook/terraform-plan@v1
with:
path: ${GITHUB_WORKSPACE}/terraform/${{ inputs.environment }}
backend_config_file: "${GITHUB_WORKSPACE}/terraform/${{ inputs.environment }}/backend_${{ inputs.environment}}.config"

- name: TF apply
run: |
pushd ${GITHUB_WORKSPACE}/terraform/${{ inputs.environment }}
make apply
popd
# - name: TF apply
# run: |
# pushd ${GITHUB_WORKSPACE}/terraform/${{ inputs.environment }}
# make apply
# popd

0 comments on commit 64ebc53

Please sign in to comment.