Skip to content

abhijeetgauravm/github-actions-docker-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 Overview

This project demonstrates a CI/CD pipeline using GitHub Actions that:

Builds a Docker image

Pushes it to Docker Hub

Deploys the app on GitHub runner

Tests the deployment

Sends email notification

⚙️ Steps Followed

  1. Created Flask App

A simple app returning a welcome message.

  1. Dockerized Application

Used Python slim image

Installed Flask

Exposed port 5000

  1. Setup GitHub Actions

Created workflow file

Defined jobs: build, deploy, test, notify

  1. Docker Integration

Used Docker Hub credentials via secrets

Built and pushed image

  1. Deployment

Pulled image in runner

Ran container

  1. Testing

Used curl to validate app is running

  1. Email Notification

Used GitHub Action to send email

🚧 Challenges Faced Challenge Solution

Docker authentication failed Used secrets properly

Container not starting Added delay before testing

Port issues Exposed and mapped correctly

🔐 Security Best Practices

Used GitHub Secrets for credentials

Avoided hardcoding sensitive data

Limited permissions

📸 Screenshots

Workflow run

image image image

Docker Hub repo

image image

Running container logs

image

Email received

Screenshot 2026-04-06 110211

🚀 Conclusion

This pipeline demonstrates a full CI/CD lifecycle using GitHub Actions with Docker and automated validation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors