Skip to main content

Deployment & Release

The service deploys to Cloud Run through GitHub Actions. Staging deploys on every merge; production deploys when a release is tagged.

EnvironmentTriggerWorkflow
StagingMerge to mainBuild and Deploy Staging
ProductionA vX.Y.Z tag is pushedBuild and Deploy Production

Changes to markdown files alone don't trigger a staging deploy.

Releasing to production​

  1. In GitHub Actions, run 🏷️ Tag new release on main and pick Patch, Minor or Major.
  2. The workflow creates the next version tag and a GitHub release.
  3. The tag starts Build and Deploy Production.

Rolling back​

Run Re-Deploy Production (by tag) with the version to restore, for example v1.41.0.

Cloud Run jobs​

Deploys update the service and its Cloud Run jobs. Merchandising and activation syncs run inside product-sync-job with different arguments, so they pick up each production deploy too.

DeployJobs updated
Productionproduct-sync-job, collection-sync-job, archive-orphaned-job
Stagingback-in-stock-sync-job