ci(docker): custom db port
Some checks are pending
Dev / build-local (push) Waiting to run
Dev / migrate-boltdb (push) Blocked by required conditions
Dev / migrate-mysql (push) Blocked by required conditions
Dev / migrate-mariadb (push) Blocked by required conditions
Dev / migrate-postgres (push) Blocked by required conditions
Dev / integrate-boltdb (push) Blocked by required conditions
Dev / integrate-mysql (push) Blocked by required conditions
Dev / integrate-mariadb (push) Blocked by required conditions
Dev / integrate-postgres (push) Blocked by required conditions
Dev / deploy-server (push) Blocked by required conditions
Dev / deploy-runner (push) Blocked by required conditions

This commit is contained in:
Denis Gukov 2024-10-14 18:57:15 +00:00
parent f452cf546e
commit 54296bd4bf

View File

@ -88,6 +88,12 @@ if [ -z "${SEMAPHORE_DB_PORT}" ]; then
postgres) postgres)
SEMAPHORE_DB_PORT=5432 SEMAPHORE_DB_PORT=5432
;; ;;
bolt)
;;
*)
echoerr "Unknown database dialect: ${SEMAPHORE_DB_DIALECT}"
exit 1
;;
esac esac
fi fi
@ -143,7 +149,7 @@ ${SEMAPHORE_DB_HOST}
EOF EOF
else else
cat << EOF >> "${SEMAPHORE_TMP_PATH}/config.stdin" cat << EOF >> "${SEMAPHORE_TMP_PATH}/config.stdin"
${SEMAPHORE_DB_HOST} ${SEMAPHORE_DB_HOST}:${SEMAPHORE_DB_PORT}
${SEMAPHORE_DB_USER} ${SEMAPHORE_DB_USER}
${SEMAPHORE_DB_PASS} ${SEMAPHORE_DB_PASS}
${SEMAPHORE_DB} ${SEMAPHORE_DB}