-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workload identity federated login + test
- Loading branch information
1 parent
f128b70
commit 4f85f7f
Showing
1 changed file
with
10 additions
and
4 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
branches: | ||
- main | ||
- dev | ||
- workload-identity-federation | ||
|
||
jobs: | ||
deploy: | ||
|
@@ -23,11 +24,16 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: "gcloud setup" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
- id: "google-cloud-auth" | ||
name: "Authenticate to Google Cloud" | ||
uses: "google-github-actions/auth@v1" | ||
with: | ||
project_id: sample-metadata | ||
service_account_key: ${{ secrets.GCP_SERVER_DEPLOY_KEY }} | ||
workload_identity_provider: "projects/774248915715/locations/global/workloadIdentityPools/gh-deploy-pool/providers/gh-provider" | ||
service_account: "[email protected]" | ||
|
||
- id: "google-cloud-sdk-setup" | ||
name: "Set up Cloud SDK" | ||
uses: google-github-actions/setup-gcloud@v1 | ||
|
||
- name: "gcloud docker auth" | ||
run: | | ||
|