Skip to content

Commit

Permalink
Replace more places setup-gcloud@v0 -> auth@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Abacn committed Jul 11, 2024
1 parent aa31396 commit 848cf4b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 27 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/beam_CleanUpGCPResources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ jobs:
disable-cache: true
- name: Authenticate on GCP
id: auth
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Install gcloud bigtable cli
run: gcloud components install cbt
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build_runner_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- name: Authenticate on GCP
if: github.ref == 'refs/heads/master'
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
export_default_credentials: true
- name: GCloud Docker credential helper
run: |
gcloud auth configure-docker ${{env.docker_registry}}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ jobs:
if: needs.check_env_variables.outputs.gcp-variables-set == 'true' && github.event_name != 'pull_request'
steps:
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Remove existing files on GCS bucket
run: gsutil rm -r ${{ env.GCP_PATH }} || true

Expand All @@ -216,10 +216,10 @@ jobs:
name: source_zip
path: source/
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Copy sources to GCS bucket
run: gsutil cp -r -a public-read source/* ${{ env.GCP_PATH }}

Expand Down Expand Up @@ -343,10 +343,10 @@ jobs:
name: wheelhouse-${{ matrix.os }}${{ (matrix.arch == 'aarch64' && '-aarch64') || '' }}
path: wheelhouse/
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Copy wheels to GCS bucket
run: gsutil cp -r -a public-read wheelhouse/* ${{ env.GCP_PATH }}
- name: Create github action information file on GCS bucket
Expand Down Expand Up @@ -379,10 +379,10 @@ jobs:
if: needs.check_env_variables.outputs.gcp-variables-set == 'true' && github.event_name != 'pull_request'
steps:
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: List file on Google Cloud Storage Bucket
run: gsutil ls "${{ env.GCP_PATH }}*"

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/java_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,10 @@ jobs:
java-version: 11
go-version: default
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
export_default_credentials: true
- name: Run WordCount
uses: ./.github/actions/gradle-command-self-hosted-action
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/typescript_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,10 @@ jobs:
pip install 'pandas>=1.0,<1.5'
pip install -e ".[gcp]"
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/auth@v1
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
export_default_credentials: true
- run: npm ci
working-directory: ./sdks/typescript
- run: npm run build
Expand Down

0 comments on commit 848cf4b

Please sign in to comment.