Skip to content

Commit af6bfcb

Browse files
committed
workhorse is now bundled with gitlab
1 parent d289ed1 commit af6bfcb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

assets/build/install.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ set -e
33

44
GITLAB_CLONE_URL=https://gitlab.com/gitlab-org/gitlab-foss.git
55
GITLAB_SHELL_URL=https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${GITLAB_SHELL_VERSION}/gitlab-shell-v${GITLAB_SHELL_VERSION}.tar.bz2
6-
GITLAB_WORKHORSE_URL=https://gitlab.com/gitlab-org/gitlab-workhorse.git
76
GITLAB_PAGES_URL=https://gitlab.com/gitlab-org/gitlab-pages.git
87
GITLAB_GITALY_URL=https://gitlab.com/gitlab-org/gitaly.git
98

10-
GITLAB_WORKHORSE_BUILD_DIR=/tmp/gitlab-workhorse
9+
GITLAB_WORKHORSE_BUILD_DIR=${GITLAB_INSTALL_DIR}/workhorse
1110
GITLAB_PAGES_BUILD_DIR=/tmp/gitlab-pages
1211
GITLAB_GITALY_BUILD_DIR=/tmp/gitaly
1312

@@ -74,7 +73,6 @@ exec_as_git git -C ${GITLAB_INSTALL_DIR} apply --ignore-whitespace < ${GITLAB_BU
7473
fi
7574

7675
GITLAB_SHELL_VERSION=${GITLAB_SHELL_VERSION:-$(cat ${GITLAB_INSTALL_DIR}/GITLAB_SHELL_VERSION)}
77-
GITLAB_WORKHORSE_VERSION=${GITLAB_WORKHOUSE_VERSION:-$(cat ${GITLAB_INSTALL_DIR}/GITLAB_WORKHORSE_VERSION)}
7876
GITLAB_PAGES_VERSION=${GITLAB_PAGES_VERSION:-$(cat ${GITLAB_INSTALL_DIR}/GITLAB_PAGES_VERSION)}
7977

8078
# download golang
@@ -100,11 +98,9 @@ exec_as_git "PATH=$PATH" make verify setup
10098
# remove unused repositories directory created by gitlab-shell install
10199
rm -rf ${GITLAB_HOME}/repositories
102100

103-
# download gitlab-workhorse
104-
echo "Cloning gitlab-workhorse v.${GITLAB_WORKHORSE_VERSION}..."
105-
git clone -q -b v${GITLAB_WORKHORSE_VERSION} --depth 1 ${GITLAB_WORKHORSE_URL} ${GITLAB_WORKHORSE_BUILD_DIR}
101+
# build gitlab-workhorse
102+
echo "Build gitlab-workhorse"
106103
make -C ${GITLAB_WORKHORSE_BUILD_DIR} install
107-
108104
# clean up
109105
rm -rf ${GITLAB_WORKHORSE_BUILD_DIR}
110106

@@ -445,3 +441,4 @@ rm -rf /var/lib/apt/lists/*
445441
# clean up caches
446442
rm -rf ${GITLAB_HOME}/.cache ${GITLAB_HOME}/.bundle ${GITLAB_HOME}/go
447443
rm -rf /root/.cache /root/.bundle ${GITLAB_HOME}/gitlab/node_modules
444+
rm -r /tmp/*

0 commit comments

Comments
 (0)