mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(be): db host in docker file
This commit is contained in:
parent
1374bbe38a
commit
95a0609b3b
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -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
|
||||
|
||||
|
@ -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;;
|
||||
|
Loading…
Reference in New Issue
Block a user