Skip to content

Commit 95a0609

Browse files
committed
fix(be): db host in docker file
1 parent 1374bbe commit 95a0609

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- uses: actions/checkout@v3
4444

45-
# - run: context=prod task docker:test
45+
- run: context=prod task docker:test
4646

4747
- uses: docker/setup-qemu-action@v2
4848

deployment/docker/common/semaphore-wrapper

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ file_env 'SEMAPHORE_ACCESS_KEY_ENCRYPTION'
7373
exit 1
7474
}
7575

76-
if [ -n "${SEMAPHORE_DB_PORT}" ]; then
77-
SEMAPHORE_DB_HOST="${SEMAPHORE_DB_HOST}:${SEMAPHORE_DB_PORT}"
78-
fi
79-
8076
# wait on db to be up
8177

8278
if [ "${SEMAPHORE_DB_DIALECT}" != 'bolt' ]; then
@@ -93,6 +89,10 @@ if [ "${SEMAPHORE_DB_DIALECT}" != 'bolt' ]; then
9389
done
9490
fi
9591

92+
if [ -n "${SEMAPHORE_DB_PORT}" ]; then
93+
SEMAPHORE_DB_HOST="${SEMAPHORE_DB_HOST}:${SEMAPHORE_DB_PORT}"
94+
fi
95+
9696
case ${SEMAPHORE_DB_DIALECT} in
9797
mysql) SEMAPHORE_DB_DIALECT_ID=1;;
9898
bolt) SEMAPHORE_DB_DIALECT_ID=2;;

0 commit comments

Comments
 (0)