From 8f712857afad7d4ac2c1c2dd5a71eb1a0c6c4315 Mon Sep 17 00:00:00 2001 From: aIbrahiim Date: Thu, 30 Oct 2025 15:05:01 +0300 Subject: [PATCH] Configure GCR auth --- ...ommit_Python_ValidatesContainer_Dataflow.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow.yml b/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow.yml index bdf2c5da5444..34e6f641d177 100644 --- a/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow.yml +++ b/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow.yml @@ -79,6 +79,21 @@ jobs: with: java-version: default python-version: ${{ matrix.python_version }} + - name: Authenticate to GCP + uses: google-github-actions/auth@v3 + with: + service_account: ${{ secrets.GCP_SA_EMAIL }} + credentials_json: ${{ secrets.GCP_SA_KEY }} + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v3 + - name: Configure Docker auth for GCR + run: | + gcloud --quiet auth configure-docker us.gcr.io + gcloud --quiet auth configure-docker gcr.io + gcloud auth list + - name: Docker login to GCR (explicit) + run: | + gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://us.gcr.io - name: Set PY_VER_CLEAN id: set_py_ver_clean run: | @@ -105,7 +120,7 @@ jobs: uses: actions/upload-artifact@v4 if: failure() with: - name: Python Test Results + name: Python Test Results ${{ matrix.python_version }} path: '**/pytest*.xml' - name: Publish Python Test Results uses: EnricoMi/publish-unit-test-result-action@v2