Skip to content

chore(deps): update terraform tls to v4.0.6 #181

chore(deps): update terraform tls to v4.0.6

chore(deps): update terraform tls to v4.0.6 #181

Workflow file for this run

name: "integration"
# This workflow intends to verify that the module provisions
# successfully for all software and infrastructure defined.
# https://learn.hashicorp.com/tutorials/terraform/automate-terraform
on:
push:
paths-ignore:
- "LICENSE"
- "**.md"
jobs:
integrate:
name: Integration Tests
runs-on: ${{ matrix.os }}
env:
TF_VAR_metal_metro: "da"
TF_IN_AUTOMATION: 1
TF_VERSION: ${{ matrix.tf }}
TF_VAR_control_plane_node_count: 0
TF_VAR_count_x86: 1
TF_VAR_count_arm: 0
TF_VAR_metal_auth_token: ${{ secrets.METAL_AUTH_TOKEN }}
strategy:
matrix:
os: [ubuntu-latest]
tf: [1.5]
defaults:
run:
working-directory: ./examples/cpem-add-on
steps:
- name: Checkout from Github
uses: actions/checkout@v4
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ env.TF_VERSION }}
- name: Initialize Terraform, Modules, and Plugins
id: init
run: terraform init -input=false
- id: project
uses: equinix-labs/[email protected]
with:
userToken: ${{ secrets.METAL_AUTH_TOKEN }}
enableBGP: true
- name: Terraform Vars - Cluster Name
run: echo "TF_VAR_cluster_name=tfacc-${SHORT_SHA}" >> $GITHUB_ENV
- name: Terraform Vars - Project ID
run: echo "TF_VAR_metal_project_id=${{ steps.project.outputs.projectID }}" >> $GITHUB_ENV
- name: Terraform Plan
id: plan
timeout-minutes: 45
run: terraform plan -out=tfplan -input=false
- name: Terraform Apply
id: apply
timeout-minutes: 45
run: terraform apply -input=false tfplan
- name: Terraform Destroy
id: destroy
if: ${{ always() }}
run: terraform destroy -input=false -auto-approve
- name: Project Delete
if: ${{ always() }}
uses: equinix-labs/[email protected]
with:
authToken: ${{ secrets.METAL_AUTH_TOKEN }}
projectID: ${{ steps.project.outputs.projectID }}