From 474b1123f80d4b95b616aebe0caca90f93daeb2f Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:01:55 +0530 Subject: [PATCH 1/7] Clean up comments in azure-webapps-node.yml Removed comments and instructions for configuring the Azure Web App deployment workflow. --- .github/workflows/azure-webapps-node.yml | 59 ++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/azure-webapps-node.yml diff --git a/.github/workflows/azure-webapps-node.yml b/.github/workflows/azure-webapps-node.yml new file mode 100644 index 000000000..3e499cb87 --- /dev/null +++ b/.github/workflows/azure-webapps-node.yml @@ -0,0 +1,59 @@ +on: + push: + branches: [ "main" ] + workflow_dispatch: + +env: + AZURE_WEBAPP_NAME: your-app-name # set this to your application's name + AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root + NODE_VERSION: '20.x' # set this to the node version to use + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'npm' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + with: + name: node-app + path: . + + deploy: + permissions: + contents: none + runs-on: ubuntu-latest + needs: build + environment: + name: 'Development' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: node-app + + - name: 'Deploy to Azure WebApp' + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} From fda3fd613d9146ce483816f4472561ea4cc44626 Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:05:43 +0530 Subject: [PATCH 2/7] Enable workflow dispatch for Azure Web Apps --- .github/workflows/azure-webapps-node.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-webapps-node.yml b/.github/workflows/azure-webapps-node.yml index 3e499cb87..895117f2f 100644 --- a/.github/workflows/azure-webapps-node.yml +++ b/.github/workflows/azure-webapps-node.yml @@ -1,7 +1,7 @@ on: push: branches: [ "main" ] - workflow_dispatch: + env: AZURE_WEBAPP_NAME: your-app-name # set this to your application's name From 8b663c1fa7b190a4570a3c16093310adc7e4b241 Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:06:11 +0530 Subject: [PATCH 3/7] Add workflow_dispatch to Azure Web Apps workflow --- .github/workflows/azure-webapps-node.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-webapps-node.yml b/.github/workflows/azure-webapps-node.yml index 895117f2f..3e499cb87 100644 --- a/.github/workflows/azure-webapps-node.yml +++ b/.github/workflows/azure-webapps-node.yml @@ -1,7 +1,7 @@ on: push: branches: [ "main" ] - + workflow_dispatch: env: AZURE_WEBAPP_NAME: your-app-name # set this to your application's name From eee9a36c13b0e8a37c87b6a1928dc25d3c086cc7 Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:07:42 +0530 Subject: [PATCH 4/7] Add workflow_dispatch trigger to Azure workflow --- .github/workflows/azure-webapps-node.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/azure-webapps-node.yml b/.github/workflows/azure-webapps-node.yml index 3e499cb87..38a833d07 100644 --- a/.github/workflows/azure-webapps-node.yml +++ b/.github/workflows/azure-webapps-node.yml @@ -1,6 +1,7 @@ on: push: branches: [ "main" ] + workflow_dispatch: env: From aca8571994b89797fd2e52d78620fc3ba0051a55 Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:09:30 +0530 Subject: [PATCH 5/7] Remove Azure Web App environment variables Removed environment variables for Azure Web App configuration. --- .github/workflows/azure-webapps-node.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/azure-webapps-node.yml b/.github/workflows/azure-webapps-node.yml index 38a833d07..2488116a0 100644 --- a/.github/workflows/azure-webapps-node.yml +++ b/.github/workflows/azure-webapps-node.yml @@ -4,10 +4,6 @@ on: workflow_dispatch: -env: - AZURE_WEBAPP_NAME: your-app-name # set this to your application's name - AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root - NODE_VERSION: '20.x' # set this to the node version to use permissions: contents: read From b78ff989a5a20aa513d7db3c20d2e35edd63db79 Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:13:59 +0530 Subject: [PATCH 6/7] Add Terraform workflow for EKS deployment This workflow automates Terraform operations for EKS deployment, including initialization, formatting checks, validation, and planning. --- .github/workflows/terra.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/terra.yml diff --git a/.github/workflows/terra.yml b/.github/workflows/terra.yml new file mode 100644 index 000000000..1bc09845c --- /dev/null +++ b/.github/workflows/terra.yml @@ -0,0 +1,38 @@ +name: Terraform EKS + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + terraform: + name: Terraform + runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + with: + terraform_version: 1.6.6 + + - name: Terraform Init + run: terraform init + + - name: Terraform Format + run: terraform fmt -check + + - name: Terraform Validate + run: terraform validate + + - name: Terraform Plan + run: terraform plan From 97d38b456418a78c95e0ea4923bd8250c6db8fd2 Mon Sep 17 00:00:00 2001 From: JarvisIndia <141770052+JarvisIndia@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:18:04 +0530 Subject: [PATCH 7/7] Remove Terraform Plan step from terra.yml Removed Terraform Plan step from workflow --- .github/workflows/terra.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/terra.yml b/.github/workflows/terra.yml index 1bc09845c..0e85fadf3 100644 --- a/.github/workflows/terra.yml +++ b/.github/workflows/terra.yml @@ -34,5 +34,4 @@ jobs: - name: Terraform Validate run: terraform validate - - name: Terraform Plan - run: terraform plan +