adding infisical action to workflows #145

Merged
noah merged 2 commits from 141-update-workflows-with-infisical into main 2026-07-13 12:10:52 -04:00
5 changed files with 26 additions and 12 deletions

View File

@@ -34,3 +34,5 @@ jobs:
- 'api/**'
client:
- 'client/**'
infrastructure:
- 'infrastructure/**'

View File

@@ -23,7 +23,7 @@ jobs:
name: deploy
needs:
- changes
- build
- build-and-test
uses: ./.gitea/workflows/deploy.yaml
with:
app_name: flying

View File

@@ -17,3 +17,13 @@ jobs:
environment_name: test
version_number: ${{ github.run_id }}
secrets: inherit
terraform:
if: ${{ needs.changes.outputs.infrastructure == 'true' }}
name: terraform-plan
needs:
- changes
uses: ./.gitea/workflows/infrastructure.yaml
with:
environment_name: test
secrets: inherit

View File

@@ -5,8 +5,8 @@ on:
- '**'
jobs:
build:
name: build
build-and-test:
name: build-and-test
uses: ./.gitea/workflows/build_and_test.yaml
with:
environment_name: prod
@@ -16,7 +16,7 @@ jobs:
deploy:
name: deploy
needs:
- build
- build-and-test
uses: ./.gitea/workflows/deploy.yaml
with:
app_name: flying

View File

@@ -1,4 +1,4 @@
name: 'Infrastructure'
name: 'Terraform'
on:
workflow_dispatch:
inputs:
@@ -6,7 +6,7 @@ on:
type: string
jobs:
infrastructure:
terraform:
runs-on: ubuntu-latest
environment:
steps:
@@ -31,13 +31,15 @@ jobs:
- name: Terraform init
run: |
terraform init -input=false
terraform -chdir=./infrastructure init -input=false
- name: Terraform plan
if: ${{ github.event_name == 'pull_request' }}
run: |
terraform -chdir=/infrastructure plan -no-color -input=false
terraform -chdir=./infrastructure plan -no-color -input=false
# - name: Terraform apply
# run: |
# terraform apply -no-color -
- name: Terraform apply
if: ${{ github.event_name != 'pull_request' }}
run: |
terraform -chdir=./infrastructure apply -no-color -input=false