Skip to content

Add GitHub Actions CI/CD example for Flask app deployment #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davmano
Copy link

@davmano davmano commented May 7, 2025

What This Adds

This PR introduces a new example under ci-cd/github-actions-flask-deploy:

  • ✅ A simple Flask app (app.py)
  • ✅ Requirements file
  • ✅ GitHub Actions workflow (.github/workflows/flask-deploy.yml)
  • ✅ Clean and professional README.md with badges
  • ✅ Placeholder for deployment step with guidance for customization

Highlights

  • Uses Python 3.10 via setup-python
  • Includes install and (optional) test steps
  • Ready for real-world extension (EC2, Heroku, etc.)
  • Includes instructions and local setup guide

Why It Matters

This helps DevOps learners or engineers get started with GitHub Actions for CI/CD pipelines using a realistic, minimal Flask app — a common use case.


Let me know if you'd like a second PR to demonstrate actual deployment to EC2 or Render.

@davmano davmano requested a review from tungbq as a code owner May 7, 2025 16:34

on:
push:
branches: [ main ]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @davmano, I appreciate your interested on this project. this PR looks good to me, just one comment about the auto trigger event.
This would trigger and run the pipeline every push on main even if it's not related to the github-actions-flask-deploy project. Can you please add the filter on this push to only run when there has any change in the github-actions-flask-deploy folder only. Thanks.

@tungbq
Copy link
Owner

tungbq commented May 9, 2025

Hi @davmano please also move this project content under projects (./projects/github-actions-flask-deploy https://github.com/tungbq/devops-project/tree/main/projects. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants