-
Notifications
You must be signed in to change notification settings - Fork 59.9k
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
Added needed call of google-github-actions/auth with credentials and changed version of google-github-actions calls #34265
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -160,8 +160,13 @@ jobs: | |||||||
- name: Checkout | ||||||||
uses: {% data reusables.actions.action-checkout %} | ||||||||
|
||||||||
- name: Authenticate with Google Cloud | ||||||||
uses: google-github-actions/auth@v1 # or specify different version if available | ||||||||
with: | ||||||||
credentials_json: ${{ secrets.GKE_SA_KEY }} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't work as demonstrated in previews, needs escaping:
Suggested change
|
||||||||
|
||||||||
# Setup gcloud CLI | ||||||||
- uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5 | ||||||||
- uses: google-github-actions/setup-gcloud@v2 # or specify different version if available | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
with: | ||||||||
service_account_key: {% raw %}${{ secrets.GKE_SA_KEY }}{% endraw %} | ||||||||
project_id: {% raw %}${{ secrets.GKE_PROJECT }}{% endraw %} | ||||||||
|
@@ -172,7 +177,7 @@ jobs: | |||||||
gcloud --quiet auth configure-docker | ||||||||
|
||||||||
# Get the GKE credentials so we can deploy to the cluster | ||||||||
- uses: google-github-actions/get-gke-credentials@db150f2cc60d1716e61922b832eae71d2a45938f | ||||||||
- uses: google-github-actions/get-gke-credentials@v2 # or specify different version | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
with: | ||||||||
cluster_name: {% raw %}${{ env.GKE_CLUSTER }}{% endraw %} | ||||||||
location: {% raw %}${{ env.GKE_ZONE }}{% endraw %} | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.