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:
|
|
|
|
description: 'Service account with permissions to create Constellation on GCP.'
|
|
|
|
required: true
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
# As described at:
|
|
|
|
# https://github.com/google-github-actions/setup-gcloud#service-account-key-json
|
|
|
|
- name: Authorize GCP access
|
2022-07-20 04:48:01 -04:00
|
|
|
uses: google-github-actions/auth@ceee102ec2387dd9e844e01b530ccd4ec87ce955
|
2022-05-03 05:15:53 -04:00
|
|
|
with:
|
|
|
|
credentials_json: ${{ inputs.gcp_service_account_json }}
|
|
|
|
- name: Set up Cloud SDK
|
2022-07-20 04:48:01 -04:00
|
|
|
uses: google-github-actions/setup-gcloud@877d4953d2c70a0ba7ef3290ae968eb24af233bb
|
2022-05-03 05:15:53 -04:00
|
|
|
- name: Verify logged in
|
|
|
|
run: gcloud info
|
|
|
|
shell: bash
|