-
Notifications
You must be signed in to change notification settings - Fork 1
5. Deployment
Code deployments are made automatically by merging pull requests into the following branches:
- dev
- stating
- master
Each pull request acceptance to these repositories triggers an event in AWS CodePipeline which automatically fetch, build and deploy the newly merged code in a S3 bucket which serves as a file container by their related AWS CloudFront's endpoints. Some additional layers of Lambdas functions and R53 CNAMEs bound to each CloudFront endpoint, makes them safely available publicly.
Here's an idea of the current deployment workflow for your understanding.
Localhost -> GitHub -> Pull Request -> CodePipeLine -> S3 -> CloudFront -> Lambdas -> R53 (public)
ALWAYS CHECKOUT FROM DEV FIRST
git checkout dev
For each tasks:
- Create a new branch using the following nomenclature (without brackets):
[PARENT_BRANCH]-#[ISSUE_ID]-[TASK_NAME]-[ADDITIONAL_COMMENT]
ex:dev-#47-hide-section-from-homepage. - Push changes to branch.
- Create pull request from branch to
devbranch. - Ask maintainer to review pull request.
- Once accepted, review AWS CodePipeline to see if deployment has succeeded. Check logs if any errors.
- Once builded successfully, invalidate the related CloudFront layer.
In Object Paths field, enter the following paths:
/
index.html
Remember to learn something you love today.