2
0

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:
Burak Yigit Kaya 2020-05-25 01:11:19 +03:00 committed by GitHub
parent fe1f23f10f
commit 3e7df7be17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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..."