fix(install): Skip pull when SENTRY_IMAGE is set (#514)
This also uses SENTRY_VERSION instead of hard-coding `:latest` as the tag when pulling (follow up to #509).
This commit is contained in:
parent
fe1f23f10f
commit
3e7df7be17
@ -153,7 +153,12 @@ echo ""
|
|||||||
# shows a 404 error on the console which is confusing and unnecessary. To overcome this, we add the stderr>stdout
|
# shows a 404 error on the console which is confusing and unnecessary. To overcome this, we add the stderr>stdout
|
||||||
# redirection below and pass it through grep, ignoring all lines having this '-onpremise-local' suffix.
|
# redirection below and pass it through grep, ignoring all lines having this '-onpremise-local' suffix.
|
||||||
$dc pull -q --ignore-pull-failures 2>&1 | grep -v -- -onpremise-local || true
|
$dc pull -q --ignore-pull-failures 2>&1 | grep -v -- -onpremise-local || true
|
||||||
docker pull ${SENTRY_IMAGE:-getsentry/sentry:latest}
|
|
||||||
|
if [ -z "$SENTRY_IMAGE" ]; then
|
||||||
|
docker pull getsentry/sentry:${SENTRY_VERSION:-latest}
|
||||||
|
else
|
||||||
|
echo "SENTRY_IMAGE is explicitly set, skipped pulling."
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Building and tagging Docker images..."
|
echo "Building and tagging Docker images..."
|
||||||
|
Reference in New Issue
Block a user