فهرست منبع

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