Skip to content

Commit 40b8be6

Browse files
committed
chore: deploy
1 parent c59e414 commit 40b8be6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build-and-push-latest-image.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,17 @@ jobs:
7272
push: true
7373
tags: ${{ steps.meta-website.outputs.tags }}
7474
labels: ${{ steps.meta-website.outputs.labels }}
75+
76+
- name: Authenticate to Google Cloud
77+
uses: google-github-actions/auth@v1
78+
with:
79+
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
80+
81+
- name: Get GKE credentials
82+
uses: google-github-actions/get-gke-credentials@v1
83+
with:
84+
cluster_name: ${{ secrets.GKE_CLUSTER_NAME }}
85+
location: ${{ secrets.GKE_CLUSTER_LOCATION }}
86+
87+
- name: Restart deployment
88+
run: kubectl rollout restart deployment/sqlchat --namespace website

0 commit comments

Comments
 (0)