fix(deps): update all non-major dependencies to v0.19.1 #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CDKTF Deployment | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- cdktf/** | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: read | |
env: | |
CDKTF_VERSION: 0.14.3 | |
TERRAFORM_VERSION: 1.3.5 | |
NODE_VERSION: latest | |
jobs: | |
terraform: | |
name: "Terraform CDK Deploy" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
persist-credentials: false | |
# Configure 1Password Service Account | |
- name: Configure 1Password Service Account | |
uses: 1Password/load-secrets-action/configure@d1a4e73495bde3551cf63f6c048588b8f734e21d # v1 | |
with: | |
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
# Fetch TERRAFORM_CLOUD_TOKEN from 1Password using load-secrets-action | |
- name: Fetch TERRAFORM_CLOUD_TOKEN from 1Password | |
uses: 1Password/load-secrets-action@d1a4e73495bde3551cf63f6c048588b8f734e21d # v1 | |
id: fetch-terraform-cloud-token | |
with: | |
export-env: false | |
env: | |
TERRAFORM_CLOUD_TOKEN: op://Infrastructure/terraform/cloud/token | |
- 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 }} | |
- name: Setup yarn | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: yarn | |
cache-dependency-path: ./cdktf/yarn.lock | |
- name: Install dependencies | |
working-directory: ./cdktf | |
run: | | |
# Install node-gyp globally first | |
npm install -g node-gyp | |
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: Run Terraform CDK | |
uses: hashicorp/terraform-cdk-action@b4d07d8dabe30c9b40cced97871b078b341e176b # v0.3.0 | |
with: | |
terraformVersion: ${{ env.TERRAFORM_VERSION }} | |
cdktfVersion: ${{ env.CDKTF_VERSION }} | |
workingDirectory: ./cdktf | |
stackName: cdktf | |
mode: auto-approve-apply | |
terraformCloudToken: ${{ steps.fetch-terraform-cloud-token.outputs.TERRAFORM_CLOUD_TOKEN }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Store generated CDKTF | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 | |
if: always() | |
with: | |
name: cdktf | |
path: cdktf/cdktf.out/ | |
retention-days: 5 |