fix(be): db host in docker file

This commit is contained in:
Denis Gukov 2022-11-19 23:21:26 +05:00
parent 1374bbe38a
commit 95a0609b3b
2 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v3
# - run: context=prod task docker:test
- run: context=prod task docker:test
- uses: docker/setup-qemu-action@v2

View File

@ -73,10 +73,6 @@ file_env 'SEMAPHORE_ACCESS_KEY_ENCRYPTION'
exit 1
}
if [ -n "${SEMAPHORE_DB_PORT}" ]; then
SEMAPHORE_DB_HOST="${SEMAPHORE_DB_HOST}:${SEMAPHORE_DB_PORT}"
fi
# wait on db to be up
if [ "${SEMAPHORE_DB_DIALECT}" != 'bolt' ]; then
@ -93,6 +89,10 @@ if [ "${SEMAPHORE_DB_DIALECT}" != 'bolt' ]; then
done
fi
if [ -n "${SEMAPHORE_DB_PORT}" ]; then
SEMAPHORE_DB_HOST="${SEMAPHORE_DB_HOST}:${SEMAPHORE_DB_PORT}"
fi
case ${SEMAPHORE_DB_DIALECT} in
mysql) SEMAPHORE_DB_DIALECT_ID=1;;
bolt) SEMAPHORE_DB_DIALECT_ID=2;;