I got a team of untechnical QA's who have to do testing on iOS/android apps for every Pull Request (PR) that gets created by my backend team.
This is what I want to do: everytime a backend engineer creates a PR on bitbucket, I would like a script to automatically deploy the code of that PR git branch into a subdomain of our dev server that matches the JIRA issue created.
For example suppose the jira issue that the PR addresses is BAC-421, then as soon as the engineer creates a PR, the script deploys the code they created into AWS EC2 so that the QA can point their apps to www.bac421.mydevdomain.com
What is the best way to do this? I'm a devops technical nube.
Update - Environment Specs
so here is a breakup of our env - the backend uses laravel 5.3 - it's deployed on AWS EC2 - we use forge for auto deployment (nothing fancy.. we just run this script:
cd /home/forge/default git fetch --tags git pull origin master git describe composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader echo "" | sudo -S service php7.1-fpm reload if [ -f artisan ] then php artisan migrate --force php artisan config:cache php artisan queue:restart fi
that we run as soon as we merge dev unto master branch) - besides that we don't use any CI/CD tools although I'm open for recommendations - DNS provider is GoDaddy - our application server is nginx - our database is in a separate RDS instance