Skip to content

Commit

Permalink
chore(.github/workflows/cdktf-cicd): remove hard-coded CDKTF and terr…
Browse files Browse the repository at this point in the history
…aform versions
  • Loading branch information
jon77p committed Dec 30, 2023
1 parent 75eaf06 commit a0666dc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/cdktf-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ permissions:
pull-requests: write
issues: read

env:
CDKTF_VERSION: 0.14.3
TERRAFORM_VERSION: 1.3.5

jobs:
terraform:
name: "Terraform CDK CICD"
Expand All @@ -54,7 +50,6 @@ jobs:
- name: Install Terraform
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
terraform_wrapper: false
cli_config_credentials_token: ${{ steps.fetch-terraform-cloud-token.outputs.TERRAFORM_CLOUD_TOKEN }}
# Fetch the node version from the .nvmrc file
Expand Down Expand Up @@ -101,14 +96,11 @@ jobs:
uses: hashicorp/terraform-cdk-action@7a6efa0bdbd9e966036d1bf84385042d3a8fc272 # v1.0.2
id: terraform-cdk
with:
terraformVersion: ${{ env.TERRAFORM_VERSION }}
cdktfVersion: ${{ env.CDKTF_VERSION }}
workingDirectory: ./cdktf
stackName: cdktf
mode: ${{ steps.determine-mode.outputs.mode }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
env:
TERRAFORM_CLOUD_TOKEN: ${{ steps.fetch-terraform-cloud-token.outputs.TERRAFORM_CLOUD_TOKEN }}
terraformCloudToken: ${{ steps.fetch-terraform-cloud-token.outputs.TERRAFORM_CLOUD_TOKEN }}
- name: Store generated CDKTF
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4
# Only store the CDKTF output if the Terraform CDK step ran
Expand Down

0 comments on commit a0666dc

Please sign in to comment.