Skip to content

Commit 1ceecd8

Browse files
committed
fix environment
1 parent 74bee8a commit 1ceecd8

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

.github/workflows/google-cloudrun-docker.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,10 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v4
2929

30-
- name: Authenticate to Google Cloud
30+
- name: Authenticate Cloud CLI
3131
uses: 'google-github-actions/auth@v2'
3232
with:
33-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
34-
service_account: '${{ vars.GCP_SA_EMAIL }}'
35-
create_credentials_file: true
36-
export_environment_variables: true
37-
universe: 'googleapis.com'
38-
cleanup_credentials: true
39-
access_token_lifetime: '3600s'
40-
access_token_scopes: 'https://www.googleapis.com/auth/cloud-platform'
41-
id_token_include_email: false
33+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
4234

4335
- name: Set up Cloud SDK
4436
uses: 'google-github-actions/setup-gcloud@v2'
@@ -67,18 +59,11 @@ jobs:
6759
id-token: 'write'
6860

6961
steps:
70-
- name: Authenticate to Google Cloud
62+
- name: Authenticate Cloud CLI
7163
uses: 'google-github-actions/auth@v2'
7264
with:
73-
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
74-
service_account: '${{ vars.GCP_SA_EMAIL }}'
75-
create_credentials_file: true
76-
export_environment_variables: true
77-
universe: 'googleapis.com'
78-
cleanup_credentials: true
79-
access_token_lifetime: '3600s'
80-
access_token_scopes: 'https://www.googleapis.com/auth/cloud-platform'
81-
id_token_include_email: false
65+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
66+
8267

8368
- name: Set up Cloud SDK
8469
uses: 'google-github-actions/setup-gcloud@v2'

0 commit comments

Comments
 (0)