Skip to content

Commit

Permalink
Removing the k8s Deployment Restart Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simardeep1792 authored Feb 29, 2024
1 parent a2fd0fb commit 0a8b124
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ jobs:
with:
context: ./frontend
push: true
tags: northamerica-northeast1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/foresight/foresight-frontend:${{ github.sha }}
tags: northamerica-northeast1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/foresight/frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Install gcloud components
run: |
gcloud components update
gcloud components install gke-gcloud-auth-plugin
- name: Configure kubectl
run: |
gcloud container clusters get-credentials ${{ secrets.GKE_CLUSTER_NAME }} --zone ${{ secrets.GKE_CLUSTER_ZONE }} --project ${{ secrets.GCP_PROJECT_ID }}
- name: Rollout new image
run: |
kubectl set image deployment/frontend foresight-frontend=northamerica-northeast1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/foresight/foresight-frontend:${{ github.sha }} -n=frontend
kubectl rollout status deployment/frontend -n=frontend

0 comments on commit 0a8b124

Please sign in to comment.