2
0

fix(install): Fix invalid reference format again (#231)

Fix #230.
This commit is contained in:
Burak Yigit Kaya 2019-07-26 09:50:46 +03:00 committed by GitHub
parent af07ad9c55
commit 13b510fc14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 5 deletions

View File

@ -2,8 +2,8 @@ language: bash
services: docker
env:
- IMAGE=sentry:9.1.2
- IMAGE=getsentry/sentry:git
- SENTRY_IMAGE=sentry:9.1.2
- SENTRY_IMAGE=getsentry/sentry:git
script:
- ./install.sh

View File

@ -1,2 +1,2 @@
ARG IMAGE=sentry:9.1.2
FROM ${IMAGE}-onbuild
ARG SENTRY_IMAGE
FROM ${SENTRY_IMAGE}-onbuild

View File

@ -13,7 +13,7 @@ x-defaults: &defaults
build:
context: .
args:
IMAGE: ${IMAGE}
SENTRY_IMAGE: ${SENTRY_IMAGE}
depends_on:
- redis
- postgres

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -e
LATEST_STABLE_SENTRY_IMAGE='sentry:9.1.2'
MIN_DOCKER_VERSION='17.05.0'
MIN_COMPOSE_VERSION='1.17.0'
MIN_RAM=3072 # MB
@ -55,6 +57,12 @@ else
cp -n .env.example "$ENV_FILE"
fi
if [ -z $SENTRY_IMAGE ]; then
echo ""
echo "\$SENTRY_IMAGE not set, using latest stable: $LATEST_STABLE_SENTRY_IMAGE";
export SENTRY_IMAGE=$LATEST_STABLE_SENTRY_IMAGE
fi
echo ""
echo "Building and tagging Docker images..."
echo ""