- Find the current
PROD
commit inmain
- TODO: Determine the best steps via git cli / github ui?
- Branch from that commit into
hotfix/description-of-the-fix
- Apply code fix
- Test locally (why wouldn't you do this anyways!?!)
- Commit locally
- Push to GitHub remote branch
- Go to
GitHub > REPO > Actions
- Select
Hotfix
workflow - Manually dispatch (
Run workflow
) and select yourhotfix/description-of-fix
branch - Wait for deployment to complete... don't go anywhere!
- Test and verify the fix in
PREPROD
- Go to
GitHub > REPO > Actions > Hotfix > [YOUR RUN]
- Approve deployment to
PROD
- Test and verify the fix in
PROD
At this point, the hotfix will be deployed to PROD and a PR has been set up to merge the hotfix code back to
main
- Go to GitHub > Pull Requests
- Review yourself, get others to review, ensure all checks are green, go have a coffee