Skip to content
Merged
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
9 changes: 8 additions & 1 deletion gocd/templates/bash/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

eval $(regions-project-env-vars --region="${SENTRY_REGION}")

# Run the distroless image variant in s4s2 first to validate it before other
# regions. The "-distroless" tag is published by .github/workflows/image.yaml.
IMAGE_TAG="${GO_REVISION_VROOM_REPO}"
if [ "${SENTRY_REGION}" = "s4s2" ]; then
IMAGE_TAG="${GO_REVISION_VROOM_REPO}-distroless"
fi

/devinfra/scripts/get-cluster-credentials
k8s-deploy \
--label-selector="${LABEL_SELECTOR}" \
--image="us-central1-docker.pkg.dev/sentryio/vroom/vroom:${GO_REVISION_VROOM_REPO}" \
--image="us-central1-docker.pkg.dev/sentryio/vroom/vroom:${IMAGE_TAG}" \
--container-name="vroom"
Loading