Commit 2d2f1d68 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

ci: add server_id to review conf.js

parent df183f41
Pipeline #183981 failed
......@@ -420,6 +420,7 @@ deploy_review_server:
- make -C browser icons
- cp ./docker/vidjil-client/conf/conf.js ./browser/js/conf.js
- sed -i -r "s/localhost/${CI_BUILD_REF_SLUG}" ./browser/js/conf.js
- sed -i "s/\"server_id\" : \"\"/\"server_id\" : \"${CI_BUILD_REF_SLUG}\"/" ./browser/js/conf.js
- sed -r 's/^.*FILE_SOURCE.*$/FILE_SOURCE="\/usr\/share\/vidjil\/demo"/' ./docker/vidjil-server/conf/ > ./server/web2py/applications/vidjil/modules/
- sed -i -e "/EMAIL_SUBJECT_START/c EMAIL_SUBJECT_START='[Vidjil/CI][$CI_COMMIT_REF_NAME]'" -e '/FROM_EMAIL/c FROM_EMAIL=""' ./server/web2py/applications/vidjil/modules/
- mv docker docker_${CI_BUILD_REF_SLUG}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment