mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-09-01 19:19:21 +00:00
Allow setting project ID
This commit is contained in:
parent
e51b9908a9
commit
94600200ac
5 changed files with 95 additions and 21 deletions
19
.github/workflows/setup-gcloud-it.yml
vendored
19
.github/workflows/setup-gcloud-it.yml
vendored
|
|
@ -69,3 +69,22 @@ jobs:
|
|||
- name: Verify Exported
|
||||
shell: bash
|
||||
run: test -f $GOOGLE_APPLICATION_CREDENTIALS
|
||||
|
||||
project_id:
|
||||
name: setup-gcloud with configured project
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: setup-gcloud
|
||||
uses: ./setup-gcloud/
|
||||
with:
|
||||
project_id: ${{ secrets.SETUP_GCLOUD_IT_PROJECT_ID }}
|
||||
|
||||
- name: Verify project
|
||||
shell: bash
|
||||
run: gcloud config get-value project | grep ${{ secrets.SETUP_GCLOUD_IT_PROJECT_ID }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue