Skip to content

Commit e63965e

Browse files
authored
Merge pull request #2133 from sameersbn/clean-up
build: clean up build caches from `bundle` and `go` steps
2 parents 3dcb5f1 + 452062d commit e63965e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.gem
22
*.tar.gz
3-
3+
*.tar.bz2

assets/build/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ exec_as_git git config --global gc.auto 0
6464
exec_as_git git config --global repack.writeBitmaps true
6565
exec_as_git git config --global receive.advertisePushOptions true
6666

67-
6867
# shallow clone gitlab-foss
6968
echo "Cloning gitlab-foss v.${GITLAB_VERSION}..."
7069
exec_as_git git clone -q -b v${GITLAB_VERSION} --depth 1 ${GITLAB_CLONE_URL} ${GITLAB_INSTALL_DIR}
@@ -156,6 +155,7 @@ cd ${GITLAB_INSTALL_DIR}
156155

157156
# install gems, use local cache if available
158157
if [[ -d ${GEM_CACHE_DIR} ]]; then
158+
echo "Found local npm package cache..."
159159
mv ${GEM_CACHE_DIR} ${GITLAB_INSTALL_DIR}/vendor/cache
160160
chown -R ${GITLAB_USER}: ${GITLAB_INSTALL_DIR}/vendor/cache
161161
fi
@@ -426,4 +426,4 @@ DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove ${BUILD_DEPENDENCI
426426
rm -rf /var/lib/apt/lists/*
427427

428428
# clean up caches
429-
exec_as_git rm -rf ${GITLAB_HOME}/.cache
429+
rm -rf ${GITLAB_HOME}/.cache ${GITLAB_HOME}/.bundle ${GITLAB_HOME}/go

0 commit comments

Comments
 (0)