This is a complete Flask S3 Gallery application with CI/CD deployment to multiple environments.
- Flask S3 Gallery App - Complete photo gallery with AWS S3 integration
- Docker Configuration - Dockerfile for containerization
- GitHub Actions - Automated deployment to staging and production
- Environment Configuration - Example environment variables
101D_source/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── Dockerfile # Docker container configuration
├── .env.example # Environment variables template
├── templates/ # HTML templates
│ ├── base.html
│ ├── index.html
│ └── upload.html
├── .github/workflows/ # CI/CD automation
│ └── deploy.yml
├── DEPLOYMENT.md # Deployment setup guide
└── README.md # This file
- Clone this directory as your project repository
- Set up AWS S3 bucket and credentials
- Configure environment:
cp .env.example .env # Edit .env with your AWS credentials - Run locally:
pip install -r requirements.txt python app.py
This repository includes automated deployment to staging and production servers:
- Push to
stagingbranch → Deploys to staging server - Push to
mainbranch → Deploys to production server
See DEPLOYMENT.md for complete setup instructions.
This example demonstrates:
✅ Multi-Environment Deployment - Separate staging and production
✅ Docker Containerization - Consistent deployment environments
✅ GitHub Actions CI/CD - Automated build and deployment
✅ SSH-based Deployment - Direct server deployment
✅ Environment Management - Secure credential handling
✅ Health Checks - Deployment verification
Perfect for learning real-world CI/CD practices!