Skip to content

Commit 6bf9ac6

Browse files
committed
Fixup setup-gcloud
1 parent 5f4feab commit 6bf9ac6

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
name: setup-gcloud
22

3-
inputs:
4-
credentials_json:
5-
required: true
6-
type: string
7-
project_id:
8-
required: true
9-
type: string
10-
113
runs:
124
using: "composite"
135
steps:
146
- name: Auth gcloud
15-
uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2
7+
uses: google-github-actions/auth@v2
168
with:
17-
credentials_json: ${{ inputs.credentials_json }}
9+
workload_identity_provider: 'projects/321830142373/locations/global/workloadIdentityPools/github/providers/expo'
10+
service_account: 'eas-cli-github-actions@exponentjs.iam.gserviceaccount.com'
1811

1912
- name: Setup gcloud
2013
uses: google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f # v2
2114
with:
2215
version: 4.13.0
23-
project_id: ${{ inputs.project_id }}
16+
project_id: exponentjs

.github/workflows/build-and-deploy-worker.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2929

3030
- uses: ./.github/internal-actions/setup-gcloud
31-
with:
32-
credentials_json: ${{ secrets.GCLOUD_KEYFILE_JSON }}
3331

3432
- name: Check if worker already exists
3533
id: check_worker_exists
@@ -75,8 +73,6 @@ jobs:
7573
run: ./package.sh worker-${{ matrix.runner.platform }}.tar.gz ${{ matrix.runner.platform }}
7674

7775
- uses: ./.github/internal-actions/setup-gcloud
78-
with:
79-
credentials_json: ${{ secrets.GCLOUD_KEYFILE_JSON }}
8076

8177
- name: Upload worker tarballs to GCP
8278
if: github.ref == 'refs/heads/main' || inputs.environment != ''
@@ -97,8 +93,6 @@ jobs:
9793
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
9894

9995
- uses: ./.github/internal-actions/setup-gcloud
100-
with:
101-
credentials_json: ${{ secrets.GCLOUD_KEYFILE_JSON }}
10296

10397
- name: Promote worker to ${{ inputs.environment }}
10498
run: |

0 commit comments

Comments
 (0)