ci: update configuration for Azure support
This commit is contained in:
parent
c75437ea88
commit
3f91464610
42
.github/workflows/backend-integration-test.yaml
vendored
42
.github/workflows/backend-integration-test.yaml
vendored
@ -5,11 +5,11 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
use-aws:
|
use-aws:
|
||||||
description: "Run recording tests in AWS EC2 runner"
|
description: 'Run recording tests in AWS EC2 runner'
|
||||||
default: "true"
|
default: 'true'
|
||||||
aws-instance-type:
|
aws-instance-type:
|
||||||
description: "AWS EC2 instance type"
|
description: 'AWS EC2 instance type'
|
||||||
default: "c5.2xlarge"
|
default: 'c5.2xlarge'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
start-aws-runner:
|
start-aws-runner:
|
||||||
@ -37,6 +37,10 @@ jobs:
|
|||||||
test-rooms:
|
test-rooms:
|
||||||
name: Rooms API Tests
|
name: Rooms API Tests
|
||||||
runs-on: ov-actions-runner
|
runs-on: ov-actions-runner
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
storage-provider: [s3, azure]
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@ -46,8 +50,35 @@ jobs:
|
|||||||
run: curl -sSL https://get.livekit.io/cli | bash
|
run: curl -sSL https://get.livekit.io/cli | bash
|
||||||
- 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:
|
||||||
|
pre-startup-commands: |
|
||||||
|
if [ "${{ matrix.storage-provider }}" == "azure" ]; then
|
||||||
|
echo "Using Azure storage provider"
|
||||||
|
|
||||||
|
# Update egress.yaml to use Azure storage
|
||||||
|
sed -i '
|
||||||
|
/^[[:space:]]*s3:[[:space:]]*$/,/^[[:space:]]*#azure:[[:space:]]*$/ {
|
||||||
|
/^[[:space:]]*#/!s/^[[:space:]]*/ #/
|
||||||
|
}
|
||||||
|
/^[[:space:]]*#azure:[[:space:]]*$/,/^[[:space:]]*$/ {
|
||||||
|
s/^[[:space:]]*#[[:space:]]*/ /
|
||||||
|
}
|
||||||
|
' egress.yaml
|
||||||
|
|
||||||
|
# Configure Azure storage settings
|
||||||
|
sed -i "
|
||||||
|
s/account_name: your_account_name/account_name: ${{ vars.MEET_AZURE_ACCOUNT_NAME }}/g
|
||||||
|
s/account_key: your_account_key/account_key: ${{ secrets.MEET_AZURE_ACCOUNT_KEY }}/g
|
||||||
|
" egress.yaml
|
||||||
|
|
||||||
|
fi
|
||||||
- name: Setup OpenVidu Meet
|
- name: Setup OpenVidu Meet
|
||||||
uses: OpenVidu/actions/start-openvidu-meet@main
|
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||||
|
env:
|
||||||
|
MEET_WEBHOOK_ENABLED: true
|
||||||
|
MEET_PREFERENCES_STORAGE_MODE: ${{ matrix.storage-provider }}
|
||||||
|
MEET_AZURE_ACCOUNT_NAME: ${{ vars.MEET_AZURE_ACCOUNT_NAME }}
|
||||||
|
MEET_AZURE_ACCOUNT_KEY: ${{ secrets.MEET_AZURE_ACCOUNT_KEY }}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
@ -72,7 +103,6 @@ jobs:
|
|||||||
runs-on: ${{ needs.start-aws-runner.outputs.label || 'ov-actions-runner' }}
|
runs-on: ${{ needs.start-aws-runner.outputs.label || 'ov-actions-runner' }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -303,4 +333,4 @@ jobs:
|
|||||||
aws-region: ${{ vars.AWS_REGION }}
|
aws-region: ${{ vars.AWS_REGION }}
|
||||||
github-token: ${{ secrets.OPENVIDU_GITHUB_TOKEN }}
|
github-token: ${{ secrets.OPENVIDU_GITHUB_TOKEN }}
|
||||||
label: ${{ needs.start-aws-runner.outputs.label }}
|
label: ${{ needs.start-aws-runner.outputs.label }}
|
||||||
ec2-instance-id: ${{ needs.start-aws-runner.outputs.ec2-instance-id }}
|
ec2-instance-id: ${{ needs.start-aws-runner.outputs.ec2-instance-id }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user