瀏覽代碼

Merge pull request #676 from porter-dev/master

update kubectl install in gha
abelanger5 5 年之前
父節點
當前提交
810b7e58a4
共有 3 個文件被更改,包括 3 次插入6 次删除
  1. 1 2
      .github/workflows/dev.yaml
  2. 1 2
      .github/workflows/production.yaml
  3. 1 2
      .github/workflows/staging.yaml

+ 1 - 2
.github/workflows/dev.yaml

@@ -14,8 +14,7 @@ jobs:
           service_account_key: ${{ secrets.GCP_SA_KEY }}
           export_default_credentials: true
       - name: Install kubectl
-        run: |
-          sudo apt-get install kubectl
+        uses: azure/setup-kubectl@v1
       - name: Log in to gcloud CLI
         run: gcloud auth configure-docker
       - name: Checkout

+ 1 - 2
.github/workflows/production.yaml

@@ -14,8 +14,7 @@ jobs:
           service_account_key: ${{ secrets.GCP_SA_KEY }}
           export_default_credentials: true
       - name: Install kubectl
-        run: |
-          sudo apt-get install kubectl
+        uses: azure/setup-kubectl@v1
       - name: Log in to gcloud CLI
         run: gcloud auth configure-docker
       - name: Checkout

+ 1 - 2
.github/workflows/staging.yaml

@@ -14,8 +14,7 @@ jobs:
           service_account_key: ${{ secrets.GCP_SA_KEY }}
           export_default_credentials: true
       - name: Install kubectl
-        run: |
-          sudo apt-get install kubectl
+        uses: azure/setup-kubectl@v1
       - name: Log in to gcloud CLI
         run: gcloud auth configure-docker
       - name: Checkout