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 44dbc62
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 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 All @@ -79,8 +74,6 @@ jobs:
yarn install --frozen-lockfile --immutable
- name: Generate module and provider bindings
working-directory: ./cdktf
env:
TERRAFORM_CLOUD_TOKEN: ${{ steps.fetch-terraform-cloud-token.outputs.TERRAFORM_CLOUD_TOKEN }}
run: yarn get
- name: Determine mode
id: determine-mode
Expand All @@ -101,14 +94,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 44dbc62

Please sign in to comment.