Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot committed Apr 23, 2024
1 parent e2ec124 commit cdd5466
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Setup environment

description: "Setup environment"
inputs:
identity_provider:
description: "GCP workload identity provider"
Expand All @@ -19,8 +19,8 @@ runs:
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "${{ inputs.idp }}"
service_account: "${{ inputs.sa }}"
workload_identity_provider: "${{ inputs.identity_provider }}"
service_account: "${{ inputs.service_account }}"
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
Expand All @@ -30,3 +30,8 @@ runs:
shell: bash
run: |
gcloud auth configure-docker eu.gcr.io --quiet
{
echo "LEEWAY_SEGMENT_KEY=${{ inputs.leeway_segment_key }}"
echo "LEEWAY_WORKSPACE_ROOT=$GITHUB_WORKSPACE"
} >> "$GITHUB_ENV"

0 comments on commit cdd5466

Please sign in to comment.