The deployment pipelines can be quite slow to run (averaging about 10-15 minutes to deploy) and sometimes are quite temperamental, they are also locked down behind our current infrastructure restrictions.
This could be an opportunity to use GitHub actions along with Azure Devops. We could also remove the current step of merging to develop
then merging to master
(requiring 2 pull requests to release), which was previously required due to limitations of the pipelines.
Stages:
Pull requests: deploy to a review environment (which get deleted on merge)
master branch: deploy to the staging environment
git tags: deploy to the live environment
It would be good if a message with the environment URL got posted somewhere for PRs after successfully deploying.
Each stage is just simply: npm install
, npm build
, npm test
and deploy if previous are successful.