2022-07-13 08:04:46 -04:00
|
|
|
name: GCP login
|
2022-05-03 05:15:53 -04:00
|
|
|
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."
|
2022-05-03 05:15:53 -04:00
|
|
|
required: true
|
|
|
|
runs:
|
2022-09-14 09:14:26 -04:00
|
|
|
using: "composite"
|
2022-05-03 05:15:53 -04:00
|
|
|
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
|
2022-10-13 17:55:17 -04:00
|
|
|
uses: google-github-actions/auth@2671692c371cbef34ed8ded9f197670c88c9d343 # tag=v0.8.2
|
2022-09-14 09:14:26 -04:00
|
|
|
with:
|
|
|
|
credentials_json: ${{ inputs.gcp_service_account_json }}
|