Skip to content

Commit

Permalink
fix: add missing gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin committed Aug 30, 2023
1 parent 111264f commit fa86e4c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/actions/setup-gcloud/action.yml
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

0 comments on commit fa86e4c

Please sign in to comment.