Imagine making changes to your application and deploying them live with just a few steps. Continuous Delivery Pipeline makes this possible! In this blog, we’ll walk through setting up an automated pipeline using AWS services for a simple memory-matching game built with HTML, CSS, and JavaScript.
How the Pipeline Works ?
Here’s a quick overview of what we’re building:
Source Stage: Fetches your code from GitHub.
Build Stage: Uses CodeBuild to test and package your game.
Approval Stage: Adds a manual review step to check your changes.
Deploy Stage: Automatically uploads your game to an S3 bucket with static web hosting.
Simple, right? Let’s break it down step by step.
Step 1: Set Up Your GitHub Repository
- Create a repository on GitHub and push your game application source code.
- Make sure your code is clean, well-structured, and ready to be deployed.
Step 4: Set Up the Continuous Delivery Pipeline in AWS CodePipeline
- Open CodePipeline and create a new pipeline.
- Confirm that New service role is selected.
- Select** GitHub version 1** from the Source provider dropdown menu.
Connect to GitHub and select your source code repository.- Select main from the branch dropdown menu
- Confirm that GitHub webhooks is selected.
- Choose Next and select the CodeBuild project you just created.
- Choose Next and select your S3 bucket which you have created for deployment with static web hosting enabled.
- Review the pipeline and click the create pipeline button.
Access you application using the object's URL in the s3 bucket.
Step 5: Add a Review Stage
- Choose the Edit button near the top of the page.
- Choose the Add stage button between the Build and Deploy stages.
- In the created stage, choose the Add action group button.
- From the Action provider dropdown, select Manual approval.
- Hit the Done button and the Save button in the top of the page to save the changes.
- You will now see your pipeline with four stages: Source, Build, Review, and Deploy.
Once the Deploy Stage is complete refresh your application page to see the changes.
Conclusion
By combining AWS services like CodePipeline, CodeBuild, and S3, you can create a robust continuous delivery pipeline for your applications. This setup ensures a seamless deployment process, allowing you to focus on improving your application rather than worrying about deployments.
Ready to build your own pipeline? Start experimenting with AWS today!
SOCIAL SHARE CARD GENERATOR