From 96187963f2f2865aa7063d2383c47ce024456bb4 Mon Sep 17 00:00:00 2001 From: BAHIRABDULLA Date: Fri, 10 Jan 2025 18:01:03 +0530 Subject: [PATCH] deploy: checking-7 ci-cd --- .github/workflows/ci-cd.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 66bd104..0cc71a1 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -42,12 +42,12 @@ jobs: strategy: matrix: service: - - userService - - mentorService - - adminService - - courseService - - paymentService - - messagingService + - user-service + - mentor-service + - admin-service + - course-service + - payment-service + - messaging-service steps: - name: Checkout code uses: actions/checkout@v2 @@ -64,12 +64,12 @@ jobs: - name: 'Get GKE credentials' uses: 'google-github-actions/get-gke-credentials@v1' with: - cluster_name: 'vision-cluster1' # Replace with your cluster name - location: 'asia-south1-a' # Replace with your cluster location (region or zone) - project_id: 'first-planet-444914-p6' # Replace with your project ID + cluster_name: 'vision-cluster1' + location: 'asia-south1-a' + project_id: 'first-planet-444914-p6' - name: Deploy ${{ matrix.service }} run: | - SERVICE_NAME=$(echo "${{ matrix.service }}" | tr '[:upper:]' '[:lower:]') - kubectl set image deployment/${SERVICE_NAME} ${SERVICE_NAME}=bahirk/vision-${SERVICE_NAME}:latest + SERVICE_NAME=${{ matrix.service }} + kubectl set image deployment/${SERVICE_NAME} ${SERVICE_NAME}=bahirk/vision-${SERVICE_NAME//-}:latest kubectl rollout status deployment/${SERVICE_NAME}