Skip to content

Commit

Permalink
feat: update terraform versions
Browse files Browse the repository at this point in the history
  • Loading branch information
woowahan-neo committed Jan 8, 2025
1 parent a85ea19 commit ddc2baf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }}

steps:
- name: Checkout Source Code
Expand All @@ -21,14 +19,16 @@ jobs:
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.3
terraform_version: 1.10.3

- name: Select workspace
run: |
ENVIRONMENT=${{ github.event.inputs.environment }}
terraform workspace select "$ENVIRONMENT" || terraform workspace new "$ENVIRONMENT"
- name: Terraform Init and Apply
env:
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }}
run: |
terraform init
terraform plan -out=tfplan
Expand Down

0 comments on commit ddc2baf

Please sign in to comment.