-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use WIF instead of service account key
- Loading branch information
1 parent
44b3c89
commit 090124f
Showing
5 changed files
with
3 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: "Code for Life - GCloud - Deploy App" | ||
description: "Deploy an app to Google Cloud." | ||
inputs: | ||
gcp-credentials: | ||
description: "The JSON credentials used to access GCP." | ||
required: true | ||
deploy-args: | ||
description: "Arguments to pass to `gcloud app deploy`." | ||
required: false | ||
|
@@ -13,7 +10,9 @@ runs: | |
- name: 🗝 Authenticate with GCloud | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ inputs.gcp-credentials }} | ||
project_id: 'decent-digit-629' | ||
workload_identity_provider: 'projects/354656325390/locations/global/workloadIdentityPools/cfl-pool/providers/cfl-provider' | ||
service_account: '[email protected]' | ||
|
||
- name: 🤖 Set up GCloud SDK | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters