Files
gitlab-ce/scripts/compile_assets
GitLab Bot 38868c56e9 Add latest changes from gitlab-org/gitlab@master
[skip secret push protection]
2025-09-24 09:09:43 +00:00

22 lines
505 B
Bash
Executable File

#!/bin/bash
set -e
source "$(dirname "$0")/utils.sh"
section_start "install-deps" "Installing required dependencies"
bundle_install_script
yarn_install_script
section_end "install-deps"
section_start "assets-compile" "Compiling frontend assets"
if [[ -s "${GLCI_GITLAB_ASSETS_HASH_FILE}" ]]; then
echo "Cached assets found, skipping asset compilation!"
else
bin/rake gitlab:assets:compile
echo -n "${GLCI_GITLAB_ASSETS_HASH}" >"${GLCI_GITLAB_ASSETS_HASH_FILE}"
fi
section_end "assets-compile"