-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
111264f
commit fa86e4c
Showing
1 changed file
with
33 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Setup gcloud | ||
description: Setup gcloud with authentication | ||
author: '[email protected]' | ||
|
||
inputs: | ||
workload_identity_provider: | ||
description: "The workload identity provider for the github actions deployer. Created when running the 'Set up an Environemnt' step." | ||
required: true | ||
service_account: | ||
description: "The service account email of the github actions deployer. Created when running the 'Set up an Environemnt' step." | ||
required: true | ||
project_id: | ||
description: 'The google project id for setting up gcloud authentication' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# This uses Google Identity Federation to do password-less login. This is setup using terraform (deployment/create_environment/github_actions_deployer.tf) | ||
- id: auth | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
workload_identity_provider: ${{ inputs.workload_identity_provider }} | ||
service_account: ${{ inputs.service_account }} | ||
|
||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
project_id: ${{ inputs.project_id }} | ||
|
||
branding: | ||
icon: scissors | ||
color: purple |