diff --git a/general/chroot_wrap.sh b/general/chroot_wrap.sh index dc35371cddb0f1083f1c2f46afb93f30420bc859..07deace7b77a3f6c41f9a85b304d6f3cb988ad84 100755 --- a/general/chroot_wrap.sh +++ b/general/chroot_wrap.sh @@ -45,6 +45,11 @@ for platform in $PLATFORMS; do PKG_FORMAT=$(echo $PKG_FORMAT | cut -d ' ' -f2-) unexport_variables "./prod_build/$platform/conf/*" done + +if [[ $CI_COMMIT_REF_NAME == "support-5044" ]]; then + ./prod_build/general/update_dashboard.sh +fi + #[ $(mount | grep "/run/schroot/mount") ] && sudo umount -l /run/schroot/mount && sudo rm -r /run/schroot/mount/* #Removing mountpoint odds. cd $wd diff --git a/general/update_dashboard.sh b/general/update_dashboard.sh new file mode 100755 index 0000000000000000000000000000000000000000..8a4cd180f8ba22e52b0b90d7754bc1c134c0f74b --- /dev/null +++ b/general/update_dashboard.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +git clone https://${USER}:${CI_PUSH_TOKEN}@gitlab.demlabs.net/cellframe/cellframe-dashboard.git +cd cellframe-dashboard +git remote set-url origin https://${USER}:${CI_PUSH_TOKEN}@gitlab.demlabs.net/cellframe/cellframe-dashboard.git + +git checkout support-4958 + +versionPatch=$(cat config.pri | grep 'VER_PAT =' | cut -d'=' -f 2) +let "versionPatch++" +echo "update version patch to $versionPatch" +sed -i "s/VER_PAT = \"[0-9]\+\"/VER_PAT = \"$versionPatch\"/g" config.pri + + +git add config.pri +git commit -m 'update version patch' +git push