Compare commits

...

5 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
6 changed files with 12 additions and 23 deletions

View File

@@ -17,13 +17,3 @@ 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

@@ -31,15 +31,14 @@ jobs:
- name: Terraform init
run: |
terraform -chdir=./infrastructure init -input=false
terraform -chdir=./infrastructure init -reconfigure -backend-config="./backend/${{ inputs.environment_name }}.backend.tfvars" -input=false
- name: Terraform plan
if: ${{ github.event_name == 'pull_request' }}
run: |
terraform -chdir=./infrastructure plan -no-color -input=false
- name: Terraform apply
if: ${{ github.event_name != 'pull_request' }}
run: |
terraform -chdir=./infrastructure apply -no-color -input=false
# - name: Terraform apply
# if: ${{ github.event_name != 'pull_request' }}
# run: |
# terraform -chdir=./infrastructure apply -no-color -input=false

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
node_modules
**/.env
**/.env.*
**/*.env
.DS_Store
.dapr
**/**/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" {
hostname = "app.terraform.io"
organization = "noahspan"
workspaces {
prefix = "noahspan-"
}
backend "azurerm" {
resource_group_name = "noahspan"
storage_account_name = "noahspanterraform"
key = "terraform.tfstate"
}
}