Skip to content

Commit

Permalink
CI: add a job for testing GCP credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamOlech committed Oct 16, 2023
1 parent bcdb99f commit addc1d2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,28 @@ jobs:
micropython/
boards_sample_pairs
Gcp-Test:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- id: gcp-auth
name: GCP Authentcation
uses: google-github-actions/auth@v1
with:
service_account: ${{ secrets.GCP_SA }}
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
cleanup_credentials: true
create_credentials_file: true
export_environment_variables: false

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'

- name: 'Use gcloud CLI'
run: 'gcloud info'


Build:
needs: Prepare-Workload
runs-on: ubuntu-latest
Expand Down

0 comments on commit addc1d2

Please sign in to comment.