Skip to content

πŸš€ Automate Flask web app CI/CD with GitHub Actions! Streamline testing & deployment. Dive into seamless development workflows. Let's code & deploy faster! πŸŒπŸ’» #Flask #GitHubActions #CI #CD

Notifications You must be signed in to change notification settings

HemanthGangula/Flask_CI_CD_with_GitActions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

61 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Flask_CI_CD_with_GitActions

πŸš€ Automate Flask web app CI/CD with GitHub Actions! Streamline testing & deployment. Dive into seamless development workflows. Let's code & deploy faster! πŸŒπŸ’» #Flask #GitHubActions #CI #CD

Architecture

Running the Pipeline

Step 1: Fork the Repository

  • Fork the repository to your own GitHub account.

Step 2: Configure Docker Hub Credentials

  • After forking the repository, configure Docker Hub credentials in the secrets of your forked repository.
  • Note: Instead of a password, use the Access Token in DcokerHub.
  • Create a Docker repository and add its details in the ci.yml file in place of my repository. Once these two steps are completed, the CI pipeline is ready to be tested.

Continuous Deployment:

In the cd.yml file, you have to replace your Docker repository with an existing one.

Step 3: Set Up Self-Hosted Runner on AWS EC2

  • Launch an EC2 instance.
  • Ensure that port 5000 is added to the inbound rule for accessing the application.
  • Connect to the instance via SSH:
  • Run the following commands to update the packages
sudo apt update
sudo apt upgrade
  • In the forked repository in the github, go to Settings > Actions > Runners > New self-hosted runner.
  • Follow the download and configure instructions to set up the self-hosted runner.
  • Once configured, the self-hosted runner is ready for use. Testing the CD Pipeline
  • Access the application in your browser using <EC2_Public_IP>:5000.
  • Any changes pushed to the repository will update the application within 30 seconds. This setup ensures continuous integration and deployment of your application using GitHub Actions and AWS EC2.

About

πŸš€ Automate Flask web app CI/CD with GitHub Actions! Streamline testing & deployment. Dive into seamless development workflows. Let's code & deploy faster! πŸŒπŸ’» #Flask #GitHubActions #CI #CD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published