constellation/.github/actions/login_gcp/action.yml
Paul Meyer 1ec9316521 ci: rename actions
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2022-11-11 13:30:34 +01:00

20 lines
799 B
YAML

name: GCP login
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
uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # v1.0.0
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@d51b5346f85640ec2aa2fa057354d2b82c2fcbce # v1.0.1