constellation/.github/actions/gcp_login/action.yml
Fabian Kammel b841403f15 e2e test github action implementation. (#100)
e2e test implementation with GitHub actions on GCP
2022-05-03 11:15:53 +02:00

21 lines
630 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@v0
with:
credentials_json: ${{ inputs.gcp_service_account_json }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
- name: Verify logged in
run: gcloud info
shell: bash