File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
internal-actions/setup-gcloud Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 11name : setup-gcloud
22
3- inputs :
4- credentials_json :
5- required : true
6- type : string
7- project_id :
8- required : true
9- type : string
10-
113runs :
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
Original file line number Diff line number Diff line change 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
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 != ''
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 : |
You can’t perform that action at this time.
0 commit comments