Skip to content

Commit

Permalink
fix(be): db host in docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Nov 19, 2022
1 parent 1374bbe commit 95a0609
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions deployment/docker/common/semaphore-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;;
Expand Down

0 comments on commit 95a0609

Please sign in to comment.