fix: update GCS storage provider setup to save credentials and modify egress.yaml configuration

This commit is contained in:
Piwccle 2025-09-24 18:34:42 +02:00
parent 5f3c785ead
commit 19f6fa60c9

View File

@ -128,6 +128,11 @@ jobs:
node-version: '22.13' node-version: '22.13'
- name: Install LK CLI - name: Install LK CLI
run: curl -sSL https://get.livekit.io/cli | bash 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 - name: Setup OpenVidu Local Deployment
uses: OpenVidu/actions/start-openvidu-local-deployment@main uses: OpenVidu/actions/start-openvidu-local-deployment@main
with: with:
@ -147,12 +152,11 @@ jobs:
' egress.yaml ' egress.yaml
elif [[ "${{ matrix['storage-provider'] }}" == "gcs" ]]; then elif [[ "${{ matrix['storage-provider'] }}" == "gcs" ]]; then
echo "Using GCS storage provider" 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 ' yq e -i '
del(.storage.s3) | del(.storage.s3) |
.storage.gcp = { .storage.gcp.bucket = "openvidu-appdata"
"credentials_json": "${{ secrets.GCP_CREDENTIALS_JSON }}",
"bucket_name": "openvidu-appdata"
}
' egress.yaml ' egress.yaml
fi fi
@ -162,9 +166,6 @@ jobs:
fi fi
BASH BASH
chmod +x pre_startup_commands.sh && ./pre_startup_commands.sh 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 - name: Setup OpenVidu Meet
uses: OpenVidu/actions/start-openvidu-meet@main uses: OpenVidu/actions/start-openvidu-meet@main
env: env: