Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bump setup-gcloud to latest major #248

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions actions/setup-credentials/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
required: true
gcloud-sdk-version:
description: "GCloud SDK version"
default: "376.0.0"
default: "508.0.0"
required: false
runs:
using: "composite"
Expand All @@ -26,14 +26,15 @@ runs:
credentials_json: ${{ inputs.gke-service-account }}

- name: Setup GCloud SDK
uses: google-github-actions/setup-gcloud@v0.6.0
uses: google-github-actions/setup-gcloud@v2
with:
version: ${{ inputs.gcloud-sdk-version }}
project_id: ${{ inputs.gke-project }}

- name: Setup authentication
shell: bash
run: |
gcloud components install gke-gcloud-auth-plugin
gcloud container clusters get-credentials "$GKE_CLUSTER" --region "$GKE_REGION" --project "$GKE_PROJECT"
env:
GKE_REGION: ${{ inputs.gke-region }}
Expand Down
2 changes: 1 addition & 1 deletion docs/actions/setup-credentials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
| ------------------- | ------ | -------- | ----------- | ------------------------------------------ |
| gcloud-sdk-version | string | false | `"376.0.0"` | GCloud SDK version |
| gcloud-sdk-version | string | false | `"508.0.0"` | GCloud SDK version |
| gke-cluster | string | true | | GKE cluster for authentication |
| gke-project | string | true | | GKE project id for authentication |
| gke-region | string | true | | GKE region for authentication |
Expand Down