Merge pull request #72 from HideyoshiSolutions/develop

develop - feat: adds event dispatch
This commit is contained in:
2025-11-07 18:47:57 -03:00
committed by GitHub

View File

@@ -4,9 +4,6 @@ on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
terraform:
name: 'Terraform'
@@ -14,10 +11,8 @@ jobs:
env:
TF_WORKSPACE: 'prod'
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
permissions:
contents: read
steps:
# Checkout the repository to the GitHub Actions runner
@@ -43,3 +38,11 @@ jobs:
- name: Terraform Apply
if: github.event_name == 'push'
run: terraform apply -auto-approve -input=false
- name: Trigger Cluster Deployment
if: github.event_name == 'push'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.ACTIONS_KEY }}
repository: HideyoshiSolutions/infra-hideyoshi.com
event-type: deploy