I have a Python project. Currently, my deployment steps look like these.
- Commit to BitBucket repository.
- Install packages with `sudo apt-get install ... `
- Clone the BitBucket repository on a AWS EC2 instance.
- Navigate to a particular folder and run `pip install -r requirements.txt`.
Step 2 and 4 will be applicable only in case of a fresh install. For 'update' type of install, step 3 will be a pull request.
How can I automate all of the above with Pipelines?