From d7352e2cd6d0e56b1c8f57cfba01c62372144a6c Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 13 Dec 2024 10:47:00 -0700 Subject: [PATCH] deploy to middleware with CORS change --- .github/workflows/build-deploy-ocr.yml | 4 ++-- ops/terraform/modules/database/main.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy-ocr.yml b/.github/workflows/build-deploy-ocr.yml index de7dc157..37219750 100644 --- a/.github/workflows/build-deploy-ocr.yml +++ b/.github/workflows/build-deploy-ocr.yml @@ -63,7 +63,7 @@ jobs: deploy-ocr: name: Deploy OCR runs-on: ubuntu-latest - environment: demo + environment: dev needs: [build-publish-ocr] steps: - uses: actions/checkout@v4 @@ -76,7 +76,7 @@ jobs: - name: Deploy OCR-API uses: ./.github/actions/deploy-api with: - deploy-env: demo + deploy-env: dev docker-tag: ${{ needs.build-publish-ocr.outputs.docker_tag }} docker-registry: ghcr.io api-name: middleware diff --git a/ops/terraform/modules/database/main.tf b/ops/terraform/modules/database/main.tf index eba5cbc4..2e6d4957 100644 --- a/ops/terraform/modules/database/main.tf +++ b/ops/terraform/modules/database/main.tf @@ -19,7 +19,7 @@ resource "azurerm_postgresql_flexible_server" "postgres_flexible_server" { public_network_access_enabled = false lifecycle { - prevent_destroy = false + prevent_destroy = true ignore_changes = [zone] } }