Revise build patch structure

to allow patching each middleware or library

Just move patches to assets/build/patches/gitlabhq
Folder name are matched to assets/runtime/config
This commit is contained in:
Kazunori Kimura 2024-01-29 18:20:18 +09:00
parent da4e3bc244
commit 2ee5eb4980
5 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ exec_as_git git config --global --add safe.directory /home/git/gitlab
echo "Cloning gitlab-foss v.${GITLAB_VERSION}..."
exec_as_git git clone -q -b v${GITLAB_VERSION} --depth 1 ${GITLAB_CLONE_URL} ${GITLAB_INSTALL_DIR}
find "${GITLAB_BUILD_DIR}/patches/" -name "*.patch" | while read -r patch_file; do
find "${GITLAB_BUILD_DIR}/patches/gitlabhq" -name "*.patch" | while read -r patch_file; do
printf "Applying patch %s for gitlab-foss...\n" "${patch_file}"
exec_as_git git -C ${GITLAB_INSTALL_DIR} apply --ignore-whitespace < "${patch_file}"
done