瀏覽代碼

Update staging.yaml

abelanger5 5 年之前
父節點
當前提交
12cad4cd09
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .github/workflows/staging.yaml

+ 7 - 0
.github/workflows/staging.yaml

@@ -35,3 +35,10 @@ jobs:
     - name: Push
     - name: Push
       run: |
       run: |
         docker push gcr.io/porter-dev-273614/porter:staging
         docker push gcr.io/porter-dev-273614/porter:staging
+    - name: Deploy to cluster
+      run: |
+        gcloud container clusters get-credentials \
+          staging --project ${{ secrets.GCP_PROJECT_ID }}
+          
+        kubectl rollout restart deployment/porter
+