constellation/.github/actions/gcp_login/action.yml

20 lines
807 B
YAML
Raw Normal View History

name: GCP login
description: "Login to GCP & configure gcloud CLI."
inputs:
gcp_service_account_json:
2022-09-14 09:14:26 -04:00
description: "Service account with permissions to create Constellation on GCP."
required: true
runs:
2022-09-14 09:14:26 -04:00
using: "composite"
steps:
2022-09-14 09:14:26 -04:00
# As described at:
# https://github.com/google-github-actions/setup-gcloud#service-account-key-json
- name: Authorize GCP access
uses: google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72 # tag=v0.8.3
2022-09-14 09:14:26 -04:00
with:
credentials_json: ${{ inputs.gcp_service_account_json }}
# Even if preinstalled in Github Actions runner image, this setup does some magic authentication required for gsutil.
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@ee9693ff89cdf73862b8a13988f6a71070e8fc58 # tag=v0.6.2