This action performs login to GCP and configuration of kubectl for the given GKE cluster. It uses
gcloud (Google SDK) command which is already pre-installed
on the ubuntu-latest GitHub Runners.
Required GCP service account key.
Required Cluster ID in GKE.
Zone to use in GKE. Default: europe-west3-b.
GCP project ID. Default: extracted from gcp-service-account-key.
None.
- name: Configure GKE
uses: 'sendinblue/gke-login-action@v1'
with:
gcp-service-account-key: ${{ env.GCP_SERVICE_ACCOUNT_KEY }}
gke-cluster: ${{ env.GKE_CLUSTER }}
gke-zone: ${{ env.GKE_ZONE }}