GitHub Actions Workflows
This directory contains GitHub Actions workflows for CI/CD automation.
Workflows
CI Pipeline (ci.yml)
Runs on every push and pull request:
- Test: Runs unit and integration tests
- Build: Builds Docker image and pushes to ECR
- Security Scan: Scans Docker image for vulnerabilities
CD Pipeline (cd.yml)
Runs on pushes to main branch:
- Deploy Staging: Automatically deploys to staging environment
- Deploy Production: Manual deployment to production (via workflow_dispatch)
Setup
Copy workflows to your repository:
bashcp -r github-actions/.github ../../.github/Configure GitHub Secrets (Repository Settings > Secrets):
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGIONAWS_ACCOUNT_IDEKS_CLUSTER_NAME(optional, if deploying to Kubernetes)
Push code to trigger workflows
Usage
Workflows run automatically on:
- Push to
mainordevelopbranches - Pull requests to
mainordevelop - Manual trigger via
workflow_dispatch
Customization
Edit workflow files to:
- Change trigger conditions
- Add additional test stages
- Modify deployment targets
- Add notification steps