|
| 1 | +# Skyhook Release Process |
| 2 | + |
| 3 | +Step-by-step process for releasing Skyhook components (operator, agent, chart). |
| 4 | + |
| 5 | +## Release Workflow |
| 6 | + |
| 7 | +### Operator Release |
| 8 | + |
| 9 | +```bash |
| 10 | +# 1. Test thoroughly, merge all PRs to main |
| 11 | +# 2. Tag and push |
| 12 | +git checkout main && git pull origin main |
| 13 | +git tag operator/v1.2.3 |
| 14 | +git push origin operator/v1.2.3 |
| 15 | +``` |
| 16 | + |
| 17 | +**Automated:** Tests → Multi-platform build → Publish to ghcr.io + nvcr.io → Attestations |
| 18 | + |
| 19 | +### Agent Release |
| 20 | + |
| 21 | +```bash |
| 22 | +# 1. Test agent compatibility, merge all PRs to main |
| 23 | +# 2. Tag and push |
| 24 | +git checkout main && git pull origin main |
| 25 | +git tag agent/v1.2.3 |
| 26 | +git push origin agent/v1.2.3 |
| 27 | +``` |
| 28 | + |
| 29 | +**Automated:** Tests → Multi-platform build → Publish to ghcr.io + nvcr.io |
| 30 | + |
| 31 | +### Chart Release |
| 32 | + |
| 33 | +```bash |
| 34 | +# 1. Update Chart.yaml versions |
| 35 | +# chart/Chart.yaml |
| 36 | +version: v1.2.3 # Chart version |
| 37 | +appVersion: v0.8.0 # Recommended operator version |
| 38 | + |
| 39 | +# 2. Create PR and merge |
| 40 | +git checkout -b release/chart-v1.2.3 |
| 41 | +git add chart/Chart.yaml |
| 42 | +git commit -m "chart: bump version to v1.2.3" |
| 43 | +git push origin release/chart-v1.2.3 |
| 44 | +# Review and merge PR |
| 45 | + |
| 46 | +# 3. Tag after merge |
| 47 | +git checkout main && git pull origin main |
| 48 | +git tag chart/v1.2.3 |
| 49 | +git push origin chart/v1.2.3 |
| 50 | +``` |
| 51 | + |
| 52 | +**Automated:** Package Helm chart → Publish to chart repository (when implemented) |
| 53 | + |
| 54 | +## Release Checklist |
| 55 | + |
| 56 | +**Before tagging:** |
| 57 | +- [ ] All PRs merged to main |
| 58 | +- [ ] For charts: Chart.yaml updated and merged |
| 59 | +- [ ] Tests passing |
| 60 | +- [ ] Documentation updated |
| 61 | + |
| 62 | +**After tagging:** |
| 63 | +- [ ] CI/CD pipeline completes |
| 64 | +- [ ] Images published successfully |
| 65 | +- [ ] Test deployment with new version |
| 66 | + |
| 67 | +## Common Commands |
| 68 | + |
| 69 | +```bash |
| 70 | +# Check current tags |
| 71 | +git tag -l 'operator/v*' --sort=-v:refname | head -5 |
| 72 | +git tag -l 'agent/v*' --sort=-v:refname | head -5 |
| 73 | +git tag -l 'chart/v*' --sort=-v:refname | head -5 |
| 74 | + |
| 75 | +# See what will be included in tag |
| 76 | +git log --oneline $(git tag -l 'operator/v*' --sort=-v:refname | head -1)..HEAD |
| 77 | + |
| 78 | +# Delete tag if needed (before CI runs) |
| 79 | +git tag -d operator/v1.2.3 |
| 80 | +git push origin :refs/tags/operator/v1.2.3 |
| 81 | +``` |
| 82 | + |
| 83 | +## Rollback |
| 84 | + |
| 85 | +For problematic releases: |
| 86 | +1. Tag new patch release with fixes |
| 87 | +2. For critical issues: Update chart `appVersion` to previous stable version |
| 88 | + |
| 89 | +See [versioning.md](versioning.md) for version strategy details. |
0 commit comments