Skip to content

Commit

Permalink
deploy: checking-7 ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
BAHIRABDULLA committed Jan 10, 2025
1 parent efac4db commit 9618796
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}

0 comments on commit 9618796

Please sign in to comment.