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
paths filter 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/auth for GCP, or docker/login-action for GHCR
- Store credentials as repository secrets
Tagging strategy:
latest for main
- Git SHA for traceability
- Semantic version tags if releases are tagged
Acceptance Criteria
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.ymlTriggers:
backend/**backend/**pathsfilter to avoid running on frontend-only changesSteps:
linux/amd64,linux/arm64)Authentication:
google-github-actions/authfor GCP, ordocker/login-actionfor GHCRTagging strategy:
latestfor mainAcceptance Criteria
.github/workflows/backend.ymlexists and triggers only onbackend/**changes