How trainwithshubham/github-actions-zero-to-hero works
This repository is a GitHub Actions learning project centered on a Flask app and its CI/CD and DevSecOps workflows. The app serves a page and a health check; the workflows demonstrate manual and event-triggered checks, security scans, image publishing, and deployment. Workflow relationships and the portfolio deployment are documented in the README; only the Flask route-to-template call was verified in source excerpts, so other links rely on README evidence.
Main entry points: devsecops-pipeline.yml Pipeline orchestrator · docker-build-push.yml Image build and push · deploy-to-server.yml Server deploy · app.py Flask routes
Components 23
Web application
- Flask routes
app.py - App frontend
templates/index.html - Portfolio site
index.html
Workflow fundamentals
- Workflow basics
.github/workflows/hello.yml - Manual CI/CD
.github/workflows/cicd.yml - Pages deploy
.github/workflows/portfolio-deploy.yml - Python lint matrix
.github/workflows/python-matrix.yml
DevSecOps pipeline
- Pipeline orchestrator
.github/workflows/devsecops-pipeline.yml - Code quality
.github/workflows/code-quality.yml - Secrets scan
.github/workflows/secrets-scan.yml - Dependency scan
.github/workflows/dependency-scan.yml - Docker lint
.github/workflows/docker-lint.yml - Route tests
.github/workflows/tests.yml
Container delivery
- Image build and push
.github/workflows/docker-build-push.yml - Image scan
.github/workflows/image-scan.yml - Self-hosted deploy
.github/workflows/deploy-app.yml - Server deploy
.github/workflows/deploy-to-server.yml - Container definition
Dockerfile - Compose deployment config
docker-compose.yml
Other components
- App user
- GitHub Actions
- Docker Hub
- EC2 server
Connections 24
- App user → Flask routes: requests routes
README.md - Flask routes → App frontend: renders page
app.py - GitHub Actions → Workflow basics: runs
README.md - GitHub Actions → Manual CI/CD: runs manually
README.md - GitHub Actions → Pages deploy: deploys site
README.md - Portfolio site → Pages deploy: published by
README.md - GitHub Actions → Python lint matrix: runs lint matrix
README.md - GitHub Actions → Pipeline orchestrator: triggers on push
README.md - Pipeline orchestrator → Code quality: invokes
README.md - Pipeline orchestrator → Secrets scan: invokes
README.md - Pipeline orchestrator → Dependency scan: invokes
README.md - Pipeline orchestrator → Docker lint: invokes
README.md - Pipeline orchestrator → Route tests: invokes
README.md - Pipeline orchestrator → Image build and push: invokes after checks
README.md - Image build and push → Docker Hub: pushes image
README.md - Pipeline orchestrator → Image scan: invokes after build
README.md - Image scan → Docker Hub: scans image
README.md - Pipeline orchestrator → Server deploy: invokes after scan
README.md - Server deploy → EC2 server: deploys remotely
README.md - Self-hosted deploy → Compose deployment config: deploys with
README.md - Server deploy → Compose deployment config: deploys with
README.md - Docker lint → Container definition: checks
README.md - Image build and push → Container definition: builds from
README.md - EC2 server → Flask routes: runs deployed app
README.md