Attempt a fix for CI

This commit is contained in:
Florent 2023-02-03 15:25:19 +01:00 committed by Florent F
parent c1d2add304
commit ed02009b00
2 changed files with 8 additions and 7 deletions

View file

@ -86,14 +86,15 @@ ynh_script_progression --message="Setting up source files..."
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
git clone $REPOSITORY $final_path --quiet git clone $REPOSITORY $final_path --quiet
pushd "$final_path"
git checkout $COMMIT --quiet
popd
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path" chown -R $app:$app "$final_path"
pushd "$final_path"
ynh_exec_as $app git checkout $COMMIT --quiet
popd
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
@ -110,10 +111,10 @@ ynh_add_nginx_config
ynh_script_progression --message="Building..." ynh_script_progression --message="Building..."
pushd "$final_path" pushd "$final_path"
git submodule update --init --recursive ynh_exec_as $app git submodule update --init --recursive
ynh_use_nodejs ynh_use_nodejs
yarn install --pure-lockfile yarn install --pure-lockfile
mkdir "$final_path/dist" ynh_exec_as $app mkdir "$final_path/dist"
$ynh_npm run build $ynh_npm run build
popd popd

View file

@ -123,10 +123,10 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st
ynh_script_progression --message="Building..." ynh_script_progression --message="Building..."
pushd "$final_path" pushd "$final_path"
git submodule update --init --recursive ynh_exec_as $app git submodule update --init --recursive
ynh_use_nodejs ynh_use_nodejs
yarn install --pure-lockfile yarn install --pure-lockfile
$ynh_npm run build ynh_exec_as $app $ynh_npm run build
popd popd
#================================================= #=================================================