mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
1ec9316521
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
20 lines
799 B
YAML
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
|