Compare commits

..

14 Commits

Author SHA1 Message Date
e50213a1aa switching terraform backend to azure storage 2026-07-14 11:09:57 -05:00
a54105e8e5 switching terraform backend to azure storage
All checks were successful
Pull Request / changes (pull_request) Successful in 22s
Pull Request / build-and-test (pull_request) Has been skipped
2026-07-13 11:50:31 -05:00
b8ec5be269 switching terraform backend to azure storage
All checks were successful
Pull Request / changes (pull_request) Successful in 19s
Pull Request / build-and-test (pull_request) Has been skipped
Pull Request / terraform-plan (pull_request) Has been skipped
2026-07-13 11:47:30 -05:00
875b8a0d90 switching terraform backend to azure storage
All checks were successful
Pull Request / changes (pull_request) Successful in 23s
Pull Request / build-and-test (pull_request) Has been skipped
Pull Request / terraform-plan (pull_request) Has been skipped
2026-07-13 11:46:41 -05:00
81c589001b switching terraform backend to azure storage
All checks were successful
Pull Request / changes (pull_request) Successful in 22s
Pull Request / build-and-test (pull_request) Has been skipped
Pull Request / terraform-plan (pull_request) Has been skipped
2026-07-13 11:31:00 -05:00
baedfc1675 Merge pull request 'adding infisical action to workflows' (#145) from 141-update-workflows-with-infisical into main
All checks were successful
Main / changes (push) Successful in 19s
Main / build-and-test (push) Has been skipped
Main / deploy (push) Has been skipped
Reviewed-on: #145
2026-07-13 12:10:51 -04:00
4eccf8e83c Merge branch 'main' into 141-update-workflows-with-infisical
All checks were successful
Pull Request / changes (pull_request) Successful in 15s
Pull Request / build-and-test (pull_request) Has been skipped
Pull Request / terraform-plan (pull_request) Has been skipped
2026-07-13 12:09:40 -04:00
a4778d29be adding infisical action to workflows
All checks were successful
Pull Request / changes (pull_request) Successful in 22s
Pull Request / build-and-test (pull_request) Has been skipped
Pull Request / terraform-plan (pull_request) Has been skipped
2026-07-13 11:09:06 -05:00
5c04870d37 Merge pull request '141-update-workflows-with-infisical' (#144) from 141-update-workflows-with-infisical into main
All checks were successful
Main / changes (push) Successful in 23s
Main / build-and-test (push) Has been skipped
Main / deploy (push) Successful in 2m38s
Reviewed-on: #144
2026-07-13 12:01:20 -04:00
c81b514ae8 Merge branch 'main' into 141-update-workflows-with-infisical
All checks were successful
Pull Request / changes (pull_request) Successful in 14s
Pull Request / build-and-test (pull_request) Has been skipped
2026-07-13 11:58:17 -04:00
5a07318527 adding infisical action to workflows
All checks were successful
Pull Request / changes (pull_request) Successful in 23s
Pull Request / build-and-test (pull_request) Has been skipped
2026-07-13 10:57:19 -05:00
99e5d162ef adding infisical action to workflows 2026-07-13 10:56:52 -05:00
755c429d04 Merge pull request 'adding infisical action to workflows' (#143) from 141-update-workflows-with-infisical into main
Some checks failed
Main / changes (push) Successful in 18s
Main / build-and-test (push) Has been skipped
Main / deploy (push) Failing after 7s
Reviewed-on: #143
2026-07-13 11:50:29 -04:00
6ea7326a57 adding infisical action to workflows
All checks were successful
Pull Request / changes (pull_request) Successful in 22s
Pull Request / build-and-test (pull_request) Has been skipped
2026-07-13 10:48:28 -05:00
8 changed files with 24 additions and 21 deletions

View File

@@ -33,4 +33,6 @@ jobs:
api: api:
- 'api/**' - 'api/**'
client: client:
- 'client/**' - 'client/**'
infrastructure:
- 'infrastructure/**'

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
name: 'Infrastructure' name: 'Terraform'
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@@ -6,7 +6,7 @@ on:
type: string type: string
jobs: jobs:
infrastructure: terraform:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: environment:
steps: steps:
@@ -30,14 +30,15 @@ jobs:
uses: hashicorp/setup-terraform@v4 uses: hashicorp/setup-terraform@v4
- name: Terraform init - name: Terraform init
uses: | run: |
terraform init -input=false terraform -chdir=./infrastructure init -reconfigure -backend-config="./backend/${{ inputs.environment_name }}.backend.tfvars" -input=false
- name: Terraform plan - name: Terraform plan
uses: | run: |
terraform plan -no-color -input=false terraform -chdir=./infrastructure plan -no-color -input=false
- name: Terraform apply # - name: Terraform apply
uses: | # if: ${{ github.event_name != 'pull_request' }}
terraform apply -no-color - # run: |
# terraform -chdir=./infrastructure apply -no-color -input=false

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
node_modules node_modules
**/.env **/.env
**/.env.* **/.env.*
**/*.env
.DS_Store .DS_Store
.dapr .dapr
**/**/secrets.json **/**/secrets.json

View File

@@ -0,0 +1 @@
container_name = "tfstate-flying-prod"

View File

@@ -0,0 +1 @@
container_name = "tfstate-flying-test"

View File

@@ -16,12 +16,9 @@ terraform {
} }
} }
backend "remote" { backend "azurerm" {
hostname = "app.terraform.io" resource_group_name = "noahspan"
organization = "noahspan" storage_account_name = "noahspanterraform"
key = "terraform.tfstate"
workspaces {
prefix = "noahspan-"
}
} }
} }