File size: 403 Bytes
c09f67c
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Shared Docker entrypoint for all Railway services.
# Sets GIT_COMMIT_SHA and SENTRY_RELEASE from the build-time stamp file
# when Railway doesn't provide them at runtime (e.g. `railway up` deploys).

GIT_COMMIT_SHA="${GIT_COMMIT_SHA:-$(cat /tmp/git-sha.txt 2>/dev/null || echo "")}"
export GIT_COMMIT_SHA

SENTRY_RELEASE="${SENTRY_RELEASE:-$GIT_COMMIT_SHA}"
export SENTRY_RELEASE

exec "$@"