From eba306e2088fc925b2aa87faedae81d90d1974f9 Mon Sep 17 00:00:00 2001 From: ihsankahveci Date: Fri, 23 Jan 2026 10:30:29 -0800 Subject: [PATCH 1/6] feat: migrate deployments to rds-app-kc with deployment slots Update deployment workflows to use new Azure App Service (rds-app-kc) with proper slot configuration: - Main branch deploys to rds-app-kc Production slot - Test branch deploys to rds-app-kc test slot - Preserve existing deployment by adding temp workflow for kc-pit-2026 branch to rds-main This allows parallel deployments and better environment separation. Co-Authored-By: Claude Sonnet 4.5 --- .../workflows/azure-webapp-deploy-temp.yml | 63 +++++++++++++++++++ .../workflows/azure-webapp-deploy-test.yml | 4 +- .github/workflows/azure-webapp-deploy.yml | 4 +- 3 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/azure-webapp-deploy-temp.yml diff --git a/.github/workflows/azure-webapp-deploy-temp.yml b/.github/workflows/azure-webapp-deploy-temp.yml new file mode 100644 index 00000000..d90ae156 --- /dev/null +++ b/.github/workflows/azure-webapp-deploy-temp.yml @@ -0,0 +1,63 @@ +name: RDS MAIN Build and Deploy Monolithic React + Node app to Azure + +on: + push: + branches: + - kc-pit-2026 # or your deployment branch + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + # Checkout the repo + - uses: actions/checkout@v6 + + # Setup Node.js (adjust version as needed) + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: "22" + + # Install client and server dependencies and build React app + - name: Install client dependencies + run: | + cd client + npm install + + - name: Install server dependencies + run: | + cd server + npm install + + - name: Build React client + run: | + cd client + npm run build + + # Copy React dist into server folder + - name: Copy React dist to server build folder + run: | + rm -rf server/dist + cp -r client/dist server/dist + + # Install server dependencies + - name: Install server dependencies + run: | + cd server + npm install + + # Build server dependencies + - name: Build server + run: | + cd server + npm run build + + # Deploy to Azure App Service using Azure/webapps-deploy action + - name: Deploy to Azure Web App + uses: azure/webapps-deploy@v3 + with: + app-name: rds-main # Replace with your Azure App Service name + slot-name: "Production" + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_TEMP }} + package: ./server diff --git a/.github/workflows/azure-webapp-deploy-test.yml b/.github/workflows/azure-webapp-deploy-test.yml index f652f190..bbfcee8b 100644 --- a/.github/workflows/azure-webapp-deploy-test.yml +++ b/.github/workflows/azure-webapp-deploy-test.yml @@ -57,7 +57,7 @@ jobs: - name: Deploy to Azure Web App uses: azure/webapps-deploy@v3 with: - app-name: rds-test # Replace with your Azure App Service name - slot-name: "Production" + app-name: rds-app-kc # Replace with your Azure App Service name + slot-name: "test" publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_RDS_TEST_DEPLOY }} package: ./server diff --git a/.github/workflows/azure-webapp-deploy.yml b/.github/workflows/azure-webapp-deploy.yml index 899bd18d..fa51c492 100644 --- a/.github/workflows/azure-webapp-deploy.yml +++ b/.github/workflows/azure-webapp-deploy.yml @@ -57,7 +57,7 @@ jobs: - name: Deploy to Azure Web App uses: azure/webapps-deploy@v3 with: - app-name: rds-main # Replace with your Azure App Service name + app-name: rds-app-kc # Replace with your Azure App Service name slot-name: "Production" - publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE}} package: ./server From 40ecffc26229325b421e75f46e103816166d2d72 Mon Sep 17 00:00:00 2001 From: ihsankahveci Date: Fri, 23 Jan 2026 12:55:11 -0800 Subject: [PATCH 2/6] fix: update deployment configurations for Azure workflows --- .github/workflows/azure-webapp-deploy-temp.yml | 4 ++-- .github/workflows/azure-webapp-deploy-test.yml | 6 +++--- .github/workflows/azure-webapp-deploy.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/azure-webapp-deploy-temp.yml b/.github/workflows/azure-webapp-deploy-temp.yml index d90ae156..763835e3 100644 --- a/.github/workflows/azure-webapp-deploy-temp.yml +++ b/.github/workflows/azure-webapp-deploy-temp.yml @@ -1,4 +1,4 @@ -name: RDS MAIN Build and Deploy Monolithic React + Node app to Azure +name: Deploying kc-pit-2026 branch to rds-main (rob) slot on: push: @@ -59,5 +59,5 @@ jobs: with: app-name: rds-main # Replace with your Azure App Service name slot-name: "Production" - publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_TEMP }} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds-main-rob }} package: ./server diff --git a/.github/workflows/azure-webapp-deploy-test.yml b/.github/workflows/azure-webapp-deploy-test.yml index bbfcee8b..f34a2271 100644 --- a/.github/workflows/azure-webapp-deploy-test.yml +++ b/.github/workflows/azure-webapp-deploy-test.yml @@ -1,9 +1,9 @@ -name: RDS TEST Build and Deploy Monolithic React + Node app to Azure +name: Deploying kc-pit-2026-test branch to rds-app-kc test slot on: push: branches: - - test # or your deployment branch + - kc-pit-2026-test # or your deployment branch jobs: build-and-deploy: @@ -59,5 +59,5 @@ jobs: with: app-name: rds-app-kc # Replace with your Azure App Service name slot-name: "test" - publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_RDS_TEST_DEPLOY }} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds-app-kc-test }} package: ./server diff --git a/.github/workflows/azure-webapp-deploy.yml b/.github/workflows/azure-webapp-deploy.yml index fa51c492..d6fefd8a 100644 --- a/.github/workflows/azure-webapp-deploy.yml +++ b/.github/workflows/azure-webapp-deploy.yml @@ -1,9 +1,9 @@ -name: RDS MAIN Build and Deploy Monolithic React + Node app to Azure +name: Deploying kc-pit-2026 branch to rds-app-kc prod slot on: push: branches: - - main # or your deployment branch + - kc-pit-2026 # or your deployment branch jobs: build-and-deploy: @@ -59,5 +59,5 @@ jobs: with: app-name: rds-app-kc # Replace with your Azure App Service name slot-name: "Production" - publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE}} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds-app-kc}} package: ./server From 08fc31757f4ce8eadfa7a2b864548f87cb6a5a39 Mon Sep 17 00:00:00 2001 From: ihsankahveci Date: Fri, 23 Jan 2026 13:04:31 -0800 Subject: [PATCH 3/6] Secret names can't have hyphen (-), so I updated them with underscore (_) --- .github/workflows/azure-webapp-deploy-temp.yml | 2 +- .github/workflows/azure-webapp-deploy-test.yml | 2 +- .github/workflows/azure-webapp-deploy.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/azure-webapp-deploy-temp.yml b/.github/workflows/azure-webapp-deploy-temp.yml index 763835e3..478e62ad 100644 --- a/.github/workflows/azure-webapp-deploy-temp.yml +++ b/.github/workflows/azure-webapp-deploy-temp.yml @@ -59,5 +59,5 @@ jobs: with: app-name: rds-main # Replace with your Azure App Service name slot-name: "Production" - publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds-main-rob }} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds_main_rob }} package: ./server diff --git a/.github/workflows/azure-webapp-deploy-test.yml b/.github/workflows/azure-webapp-deploy-test.yml index f34a2271..bd88219b 100644 --- a/.github/workflows/azure-webapp-deploy-test.yml +++ b/.github/workflows/azure-webapp-deploy-test.yml @@ -59,5 +59,5 @@ jobs: with: app-name: rds-app-kc # Replace with your Azure App Service name slot-name: "test" - publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds-app-kc-test }} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds_app_kc_test }} package: ./server diff --git a/.github/workflows/azure-webapp-deploy.yml b/.github/workflows/azure-webapp-deploy.yml index d6fefd8a..26f97110 100644 --- a/.github/workflows/azure-webapp-deploy.yml +++ b/.github/workflows/azure-webapp-deploy.yml @@ -59,5 +59,5 @@ jobs: with: app-name: rds-app-kc # Replace with your Azure App Service name slot-name: "Production" - publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds-app-kc}} + publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_rds_app_kc}} package: ./server From c3f7da98089fa2605b14871bf74ee4357572b4bf Mon Sep 17 00:00:00 2001 From: Ihsan Kahveci Date: Fri, 23 Jan 2026 13:58:44 -0800 Subject: [PATCH 4/6] Update .github/workflows/azure-webapp-deploy-temp.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/azure-webapp-deploy-temp.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/azure-webapp-deploy-temp.yml b/.github/workflows/azure-webapp-deploy-temp.yml index 478e62ad..646def49 100644 --- a/.github/workflows/azure-webapp-deploy-temp.yml +++ b/.github/workflows/azure-webapp-deploy-temp.yml @@ -25,11 +25,6 @@ jobs: cd client npm install - - name: Install server dependencies - run: | - cd server - npm install - - name: Build React client run: | cd client From 3c3a8cf6e78d43a208f312649b4b95a7d080f81b Mon Sep 17 00:00:00 2001 From: Ihsan Kahveci Date: Fri, 23 Jan 2026 14:11:59 -0800 Subject: [PATCH 5/6] Rename workflow file for RDS app deployment --- ...pp-deploy-test.yml => azure-webapp-deploy-rds-app-kc-test.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{azure-webapp-deploy-test.yml => azure-webapp-deploy-rds-app-kc-test.yml} (100%) diff --git a/.github/workflows/azure-webapp-deploy-test.yml b/.github/workflows/azure-webapp-deploy-rds-app-kc-test.yml similarity index 100% rename from .github/workflows/azure-webapp-deploy-test.yml rename to .github/workflows/azure-webapp-deploy-rds-app-kc-test.yml From ebd00b43e7da2e7f1758dc1a5843cd2207a4d215 Mon Sep 17 00:00:00 2001 From: Ihsan Kahveci Date: Fri, 23 Jan 2026 14:12:27 -0800 Subject: [PATCH 6/6] Add new workflow for Azure Web App deployment --- ...-webapp-deploy.yml => azure-webapp-deploy-rds-app-kc-prod.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{azure-webapp-deploy.yml => azure-webapp-deploy-rds-app-kc-prod.yml} (100%) diff --git a/.github/workflows/azure-webapp-deploy.yml b/.github/workflows/azure-webapp-deploy-rds-app-kc-prod.yml similarity index 100% rename from .github/workflows/azure-webapp-deploy.yml rename to .github/workflows/azure-webapp-deploy-rds-app-kc-prod.yml