mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2026-01-06 11:06:35 +00:00
22 lines
505 B
Bash
Executable File
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"
|