mirror of https://github.com/OpenVidu/openvidu.git
ci-scripts: obtain test image from TEST_IMAGE en var
parent
b5779e18bf
commit
3f659457d6
|
@ -53,11 +53,12 @@ jobs:
|
|||
main:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ github.event.inputs.TEST_IMAGE || 'openvidu/openvidu-test-e2e:22.04' }}
|
||||
image: ${{ github.event.inputs.TEST_IMAGE }}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /opt/openvidu:/opt/openvidu
|
||||
env:
|
||||
TEST_IMAGE: ${{ github.event.inputs.TEST_IMAGE }}
|
||||
KURENTO_SNAPSHOTS_URL: ${{ secrets.KURENTO_SNAPSHOTS_URL }}
|
||||
KURENTO_MEDIA_SERVER_IMAGE: ${{ github.event.inputs.KURENTO_MEDIA_SERVER_IMAGE || 'kurento/kurento-media-server:6.18.0' }}
|
||||
MEDIASOUP_CONTROLLER_VERSION: ${{ github.event.inputs.MEDIASOUP_CONTROLLER_VERSION || 'master' }}
|
||||
|
@ -74,7 +75,9 @@ jobs:
|
|||
- name: Clean environment
|
||||
run: /opt/commons.sh --clean-environment
|
||||
- name: Prepare test environment
|
||||
run: /opt/commons.sh --prepare-test-environment openvidu/openvidu-test-e2e
|
||||
run: |
|
||||
DOCKER_IMAGE=$(sed -r "s|^(.+):.+$|\1|g" <<<${TEST_IMAGE})
|
||||
/opt/commons.sh --prepare-test-environment ${DOCKER_IMAGE}
|
||||
- name: Setting up Kurento Snapshots
|
||||
run: /opt/commons.sh --prepare-kurento-snapshot
|
||||
- name: Build openvidu-browser
|
||||
|
|
|
@ -11,7 +11,6 @@ GITHUB_ACTIONS_ORIGINAL_WORKING_DIR="${PWD}"
|
|||
GITHUB_ACTIONS_WORKING_DIR="${GITHUB_ACTIONS_WORKING_DIR:-}"
|
||||
|
||||
PREPARE_TEST_ENVIRONMENT=false
|
||||
TEST_IMAGE="openvidu/openvidu-test-e2e"
|
||||
|
||||
CLEAN_ENVIRONMENT=false
|
||||
PREPARE_KURENTO_SNAPSHOT=false
|
||||
|
|
Loading…
Reference in New Issue