From 2ffc2f29a1945f1f0b5eacd4fe599ae208a3d315 Mon Sep 17 00:00:00 2001
From: palindaa <palinda@xeptagon.com>
Date: Wed, 22 Jan 2025 13:34:39 +0000
Subject: [PATCH] Update CICD

---
 .github/workflows/deployment-main.yml | 38 ++++++++++-----------------
 1 file changed, 14 insertions(+), 24 deletions(-)

diff --git a/.github/workflows/deployment-main.yml b/.github/workflows/deployment-main.yml
index 17b5cb55..92bdfd99 100644
--- a/.github/workflows/deployment-main.yml
+++ b/.github/workflows/deployment-main.yml
@@ -4,19 +4,9 @@ on:
   push:
     branches:
       - main
-
-# on:
-#   workflow_dispatch:
-#     inputs:
-#       cluster_type:
-#         description: 'Enter the cluster type (bd,sl and etc)'
-#         required: true
-#       commit_sha:
-#         description: 'Commit SHA to check for changes'
-#         required: true
+  workflow_dispatch:
 
 env:
-  CONTAINER_NAME_API: api-container
   CONTAINER_NAME_TRIAGE: triage-container
   CONTAINER_NAME_PUBLISHER: publisher-container
 
@@ -118,19 +108,19 @@ jobs:
         run: |
           npm install
 
-      - name: Build, tag, and push the api image to Amazon
-        # if: steps.api-changes.outputs.api-changes == 'true'
-        id: build-image-api
-        env:
-          ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
-          ECR_REPOSITORY: iverify-api
-          IMAGE_TAG: latest
-        run: |
-          npx nx build api
-          docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f ./apps/api/Dockerfile .
-          echo "Pushing image to ECR..."
-          docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
-          echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
+      # - name: Build, tag, and push the api image to Amazon
+      #   # if: steps.api-changes.outputs.api-changes == 'true'
+      #   id: build-image-api
+      #   env:
+      #     ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
+      #     ECR_REPOSITORY: iverify-api
+      #     IMAGE_TAG: latest
+      #   run: |
+      #     npx nx build api
+      #     docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f ./apps/api/Dockerfile .
+      #     echo "Pushing image to ECR..."
+      #     docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
+      #     echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
 
       - name: Build, tag, and push the publisher image to Amazon
         # if: steps.publisher-changes.outputs.publisher-changes == 'true'