Skip to content

Add CI/CD workflows for terraform automation #16

Add CI/CD workflows for terraform automation

Add CI/CD workflows for terraform automation #16

name: Main CD for Ephememeral Devnet Deployment
on:
workflow_dispatch:
inputs:
branch:
required: true
type: string
pull_request:
branches:
- main
push:
branches:
- "!main"
paths:
- "testing-framework/ec2/network/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
uses: ./.github/workflows/terraform_template_ephemeral_deploy.yml
with:
project: testing-framework
branch: ${{ github.event.inputs.branch }}
instance: ec2
resource: network
tf_workspace_name: ephemeral-devnet
tf_version: 1.5.7
tf_organization: subspace
secrets:
TRANSCRYPT: ${{ secrets.TRANSCRYPT }}
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }}