Introduction:
CI/CD is a method used in modern software development to automate the process of integrating code changes, testing them, and deploying applications. This approach ensures that code changes are continuously tested and deployed, leading to faster development cycles and more reliable applications.
In this project, we utilize CI/CD to host a personal resume website on an EC2 instance using GitHub Actions. By automating the deployment process, any updates made to the resume repository are automatically reflected on the live website. This not only reduces manual effort but also ensures that the resume is always current and available to potential employers or collaborators.By integrating GitHub Actions with AWS, you can achieve continuous deployment, ensuring that any changes made to your resume are automatically reflected online.
This article helps you understand how you can automatically deploy your code to AWS EC2 from GitHub.
Step-1: Launch an EC2 instance with the Ubuntu server. Modify the security group inbound rules to allow SSH (port 22), HTTP (port 80), and HTTPS (port 443).
Step-3: Add secrets to the repository for secure information storage.
EC2_SSH_KEY: Your key pair file for SSH access.
HOST_DNS: The public DNS of your EC2 instance.
USERNAME: The username for SSH (e.g., ubuntu).
TARGET_DIR: The target directory on the EC2 instance (e.g., home).
Conclusion:
Hosting a resume on an EC2 instance using GitHub Actions combines the power of cloud infrastructure with the automation of CI/CD workflows. This method ensures that your resume is always up-to-date and accessible, demonstrating technical skills and modern development practices. This approach can be extended to various applications, making it a versatile solution for web hosting needs.
SOCIAL SHARE CARD GENERATOR