Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Build config for the Cloud Build trigger that runs on merges to main.
#
# Each build pushes the tagged image index plus untagged child manifests: the
# platform image and BuildKit attestations. Cloud Run can't deploy an
# attestation ("got 1 Manifest.Layers vs 0 ConfigFile.RootFS.DiffIDs"), so
# deploy by tag. The `latest` tag makes the newest build easy to pick.
substitutions:
_IMAGE: gcr.io/${PROJECT_ID}/sentry-github-actions-app
options:
# Lets _IMAGE use PROJECT_ID
dynamicSubstitutions: true
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- --tag=${_IMAGE}:${COMMIT_SHA}
- --tag=${_IMAGE}:latest
- .
images:
- ${_IMAGE}:${COMMIT_SHA}
- ${_IMAGE}:latest
2 changes: 1 addition & 1 deletion docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This page covers Sentry's own deployment of the app and its GitHub App. Users in

## Backend deployment

The app runs on Google Cloud Run. Google Cloud Build builds a Docker image when code merges to `main`. To release it, log in to Google Cloud Run and deploy the latest image. The GitHub App's webhook URL points at this deployment.
The app runs on Google Cloud Run. Google Cloud Build builds a Docker image with [`cloudbuild.yaml`](../cloudbuild.yaml) when code merges to `main`, and tags it with the commit SHA and `latest`. To release it, log in to Google Cloud Run and deploy the image by one of those tags. The GitHub App's webhook URL points at this deployment.

A Sentry project tracks errors of the backend itself. Its DSN is `APP_DSN`.

Expand Down
Loading