From 19f6fa60c94264f39114517238a536989d9826ef Mon Sep 17 00:00:00 2001 From: Piwccle Date: Wed, 24 Sep 2025 18:34:42 +0200 Subject: [PATCH] fix: update GCS storage provider setup to save credentials and modify egress.yaml configuration --- .github/workflows/backend-integration-test.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/backend-integration-test.yaml b/.github/workflows/backend-integration-test.yaml index 83d243b..83bc0a1 100644 --- a/.github/workflows/backend-integration-test.yaml +++ b/.github/workflows/backend-integration-test.yaml @@ -128,6 +128,11 @@ jobs: node-version: '22.13' - name: Install LK CLI run: curl -sSL https://get.livekit.io/cli | bash + - name: Save GCP credentials + if: matrix.storage-provider == 'gcs' + run: | + echo "${{ secrets.GCP_CREDENTIALS_JSON }}" > /credentials.json + cat /credentials.json - name: Setup OpenVidu Local Deployment uses: OpenVidu/actions/start-openvidu-local-deployment@main with: @@ -147,12 +152,11 @@ jobs: ' egress.yaml elif [[ "${{ matrix['storage-provider'] }}" == "gcs" ]]; then echo "Using GCS storage provider" + yq eval --inplace '.storage.gcp.credentials_json = (load("/credentials.json") | tostring) | .storage.gcp.credentials_json style="single"' egress.yaml + yq e -i ' del(.storage.s3) | - .storage.gcp = { - "credentials_json": "${{ secrets.GCP_CREDENTIALS_JSON }}", - "bucket_name": "openvidu-appdata" - } + .storage.gcp.bucket = "openvidu-appdata" ' egress.yaml fi @@ -162,9 +166,6 @@ jobs: fi BASH chmod +x pre_startup_commands.sh && ./pre_startup_commands.sh - - name: Save GCP credentials - if: matrix.storage-provider == 'gcs' - run: echo "${{ secrets.GCP_CREDENTIALS_JSON }}" > /credentials.json - name: Setup OpenVidu Meet uses: OpenVidu/actions/start-openvidu-meet@main env: