Skip to content
Snippets Groups Projects
Commit e943b38a authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'support-5095' into 'master'

Support 5095

See merge request cellframe/prod_build_cellframe-node!13
parents 511c6900 6af210b8
No related branches found
No related tags found
No related merge requests found
DirectoryIndex index.php index.html index.htm
<script>
window.onload = function(){
document.location = '../cellframe-node-3.4-2-amd64-stretch.deb';}
</script>
......@@ -3,8 +3,9 @@
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 master
git submodule init
git submodule update
versionPatch=$(cat config.pri | grep 'VER_PAT =' | cut -d'=' -f 2)
echo "version patch = $versionPatch"
......@@ -14,7 +15,7 @@ sed -i "s/VER_PAT = [0-9]\+/VER_PAT = $versionPatch/g" config.pri
#update cellframe-node
cd cellframe-node && git checkout master && cd -
cd cellframe-node && git checkout master && git pull && cd -
git add config.pri cellframe-node
git commit -m 'update version patch'
......
......@@ -28,7 +28,7 @@ for pkgfile in $PKGFILES; do
mv $pkgfile $wd/$PACKAGE_PATH/$pkgname$MOD.deb || { echo "[ERR] Something went wrong in publishing the package. Now aborting."; exit -4; }
CODENAME=$(echo $pkgname | rev | cut -d '-' -f1 | rev)
cp -r ../prod_build/general/essentials/weblink-latest ../prod_build/general/essentials/$pkgname_weblink
sed -i "/document/s/cellframe.*deb/$pkgname_public$MOD.deb/" ../prod_build/general/essentials/$pkgname_weblink/index.php
sed -i "/document/s/cellframe.*deb/$pkgname_public$MOD.deb/" ../prod_build/general/essentials/$pkgname_weblink/index.html
# if [[ $(echo $CI_COMMIT_REF_NAME | grep "master\|^release\|^pubtest") != "" ]]; then
echo "REF_NAME is $CI_COMMIT_REF_NAME"
ssh -i $CELLFRAME_REPO_KEY "$CELLFRAME_FILESERVER_CREDS" "mkdir -p $CELLFRAME_FILESERVER_PATH/$SUBDIR"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment