You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by yh...@apache.org on 2024/06/04 00:04:35 UTC
(beam) branch removesaaction updated: pre-installed gcloud cannot install components
This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch removesaaction
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/removesaaction by this push:
new a73fcdabbc4 pre-installed gcloud cannot install components
a73fcdabbc4 is described below
commit a73fcdabbc40fb3224c5448d5b76e8188256baa3
Author: Yi Hu <ya...@google.com>
AuthorDate: Mon Jun 3 20:04:22 2024 -0400
pre-installed gcloud cannot install components
---
.github/workflows/beam_CleanUpGCPResources.yml | 7 +++++++
.github/workflows/beam_PreCommit_CommunityMetrics.yml | 2 --
.github/workflows/beam_Publish_BeamMetrics.yml | 2 --
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/beam_CleanUpGCPResources.yml b/.github/workflows/beam_CleanUpGCPResources.yml
index 823d6c986b2..e2b626e5f78 100644
--- a/.github/workflows/beam_CleanUpGCPResources.yml
+++ b/.github/workflows/beam_CleanUpGCPResources.yml
@@ -73,6 +73,13 @@ jobs:
uses: ./.github/actions/setup-environment-action
with:
disable-cache: true
+ - name: Authenticate on GCP
+ uses: google-github-actions/setup-gcloud@v0
+ with:
+ service_account_email: ${{ secrets.GCP_SA_EMAIL }}
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ project_id: ${{ secrets.GCP_PROJECT_ID }}
+ export_default_credentials: true
- name: Install gcloud bigtable cli
run: gcloud components install cbt
- name: run cleanup GCP resources
diff --git a/.github/workflows/beam_PreCommit_CommunityMetrics.yml b/.github/workflows/beam_PreCommit_CommunityMetrics.yml
index 9a8987b9476..aaeff00e198 100644
--- a/.github/workflows/beam_PreCommit_CommunityMetrics.yml
+++ b/.github/workflows/beam_PreCommit_CommunityMetrics.yml
@@ -90,8 +90,6 @@ jobs:
run: |
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- - name: Install gcloud Kubectl
- run: gcloud components install kubectl
- name: run Community Metrics PreCommit script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
diff --git a/.github/workflows/beam_Publish_BeamMetrics.yml b/.github/workflows/beam_Publish_BeamMetrics.yml
index 52b70dbcebc..9268fd99619 100644
--- a/.github/workflows/beam_Publish_BeamMetrics.yml
+++ b/.github/workflows/beam_Publish_BeamMetrics.yml
@@ -74,8 +74,6 @@ jobs:
- name: Setup credential helper
run: |
gcloud auth configure-docker
- - name: Install gcloud Kubectl
- run: gcloud components install kubectl
- name: run Beam Metrics deployment script
uses: ./.github/actions/gradle-command-self-hosted-action
with: