Skip to content

Commit

Permalink
Update frontend.yml
Browse files Browse the repository at this point in the history
1)  Use More Specific Tags for Docker Images
2) Add Changes to re-run the deployment
  • Loading branch information
simardeep1792 authored Feb 29, 2024
1 parent 9ef2b6e commit 33c2c9f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,15 @@ jobs:
with:
context: ./frontend
push: true
tags: northamerica-northeast1-docker.pkg.dev/phx-01hnapr4ab4/foresight/foresight-frontend:latest
tags: northamerica-northeast1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/foresight/foresight-frontend:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max


- 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 33c2c9f

Please sign in to comment.