-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
The backend/ directory contains a PocketBase backend but has no CI/CD pipeline. Backend changes are not automatically built, tested, or deployed. There is no container image published for deployment.
Scope of Work
Create .github/workflows/backend.yml
Triggers:
- Push to main with changes in
backend/** - PRs to main with changes in
backend/** - Use
pathsfilter to avoid running on frontend-only changes
Steps:
- Checkout code
- Set up Docker Buildx
- Build multi-arch container image (
linux/amd64,linux/arm64) - On main: push to container registry (GCR, GHCR, or artifact registry)
- On PR: build only (no push), verify the image builds successfully
Authentication:
- Use OIDC with
google-github-actions/authfor GCP, ordocker/login-actionfor GHCR - Store credentials as repository secrets
Tagging strategy:
latestfor main- Git SHA for traceability
- Semantic version tags if releases are tagged
Acceptance Criteria
-
.github/workflows/backend.ymlexists and triggers only onbackend/**changes - Multi-arch container image builds successfully
- Image is pushed to a container registry on main branch pushes
- PR builds verify the image builds but don't push
- Registry authentication uses OIDC or secrets (no hardcoded credentials)
- Image tags include git SHA for traceability
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request