quotation service fixed
This commit is contained in:
@@ -73,6 +73,23 @@ if [ ! -d "${BUILD_CONTEXT}" ]; then
|
||||
BUILD_CONTEXT="/workspace"
|
||||
fi
|
||||
|
||||
# Gateway modules use a local replace (../common); ensure build context contains shared code.
|
||||
if [ ! -d "${BUILD_CONTEXT}/api/gateway/common" ] || [ ! -f "${BUILD_CONTEXT}/${MNTX_GATEWAY_DOCKERFILE}" ]; then
|
||||
if [ -d "${REPO_ROOT}/api/gateway/common" ] && [ -f "${REPO_ROOT}/${MNTX_GATEWAY_DOCKERFILE}" ]; then
|
||||
echo "[mntx-gateway-build] build context ${BUILD_CONTEXT} is incomplete; falling back to ${REPO_ROOT}" >&2
|
||||
BUILD_CONTEXT="${REPO_ROOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d "${BUILD_CONTEXT}/api/gateway/common" ]; then
|
||||
echo "[mntx-gateway-build] build context ${BUILD_CONTEXT} missing api/gateway/common" >&2
|
||||
exit 67
|
||||
fi
|
||||
if [ ! -f "${BUILD_CONTEXT}/${MNTX_GATEWAY_DOCKERFILE}" ]; then
|
||||
echo "[mntx-gateway-build] dockerfile not found in build context: ${MNTX_GATEWAY_DOCKERFILE}" >&2
|
||||
exit 68
|
||||
fi
|
||||
|
||||
/kaniko/executor \
|
||||
--context "${BUILD_CONTEXT}" \
|
||||
--dockerfile "${MNTX_GATEWAY_DOCKERFILE}" \
|
||||
|
||||
Reference in New Issue
Block a user