Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: restart cloud deployment after image push (#19788)

Danny Xu9bac86fbf5f4
diff --git a/.github/workflows/build-push-cloud-image.yml b/.github/workflows/build-push-cloud-image.yml
index a600baa27c..f44a549708 100644
--- a/.github/workflows/build-push-cloud-image.yml
+++ b/.github/workflows/build-push-cloud-image.yml
@@ -1,4 +1,4 @@
-name: Build and Push Cloud Image to GAR
+name: Deploy Bytebase Cloud
on:
workflow_dispatch:
@@ -51,3 +51,12 @@ jobs:
VERSION=cloud
GIT_COMMIT=${{ env.GIT_COMMIT }}
RELEASE=release
+
+ - name: Get GKE credentials
+ uses: google-github-actions/get-gke-credentials@v3
+ with:
+ cluster_name: ${{ secrets.GKE_CLUSTER_NAME }}
+ location: ${{ secrets.GKE_CLUSTER_LOCATION }}
+
+ - name: Restart deployment
+ run: kubectl rollout restart deployment/bytebase-cloud --namespace cloud