Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
celllframe-node
Commits
ad0160da
Commit
ad0160da
authored
1 week ago
by
Constantin P.
💬
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix-13205' of gitlab.demlabs.net:cellframe/cellframe-node into hotfix-15147
parents
5e0bf604
43db610d
No related branches found
No related tags found
1 merge request
!1858
hotfix-15147
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-1
6 additions, 1 deletion
.gitlab-ci.yml
dist.linux/share/update.sh
+15
-5
15 additions, 5 deletions
dist.linux/share/update.sh
with
21 additions
and
6 deletions
.gitlab-ci.yml
+
6
−
1
View file @
ad0160da
...
...
@@ -260,9 +260,14 @@ amd64:linux.tps:
-
./prod_build/pack.sh --target linux release
-
/opt/buildtools/deploy_files.sh pub_cellframe linux/cellframe-node/$CI_COMMIT_REF_NAME/ build_*/*.deb
.
amd64:linux.updtr
:
amd64:linux.updtr
:
extends
:
.build
stage
:
build
image
:
demlabs/debian/amd64:qt5
rules
:
-
when
:
manual
allow_failure
:
true
before_script
:
-
/opt/buildtools/prepare_environment.sh amd64-linux
-
*fill_version_mk
...
...
This diff is collapsed.
Click to expand it.
dist.linux/share/update.sh
+
15
−
5
View file @
ad0160da
#! /bin/bash
#! /bin/bash
set
-e
STORAGE_URL
=
https://pub.cellframe.net/linux/cellframe-node/master/updates
STORAGE_URL
=
https://pub.cellframe.net/linux/cellframe-node/master
MACHINE
=
$(
uname
-m
)
...
...
@@ -45,13 +46,22 @@ CURRENT_REBUILD=$(echo $INSTALLED_VERSION | grep -Po "[0-9]([0-9]+)")
echo
"Available patch:
$MAX_REBUILD
| Current patch:
$CURRENT_REBUILD
"
if
((
MAX_REBUILD
>
CURRENT_REBUILD
))
;
then
echo
"Need update cellframe-node to 5.2-
$MAX_REBUILD
..."
# Determine the full version (e.g. 5.3-354) from AVAILABLE_VERSIONS by the patch we found
for
ver
in
"
${
AVAILABLE_VERSIONS
[@]
}
"
do
patch
=
$(
echo
$ver
|
cut
-d
'-'
-f2
)
if
[
"
$patch
"
=
"
$MAX_REBUILD
"
]
;
then
NEW_VERSION
=
$ver
break
fi
done
echo
"Need update cellframe-node to
$NEW_VERSION
..."
else
echo
"No need to update cellframe-node"
exit
0
fi
PACKAGE_NAME
=
"cellframe-node-
5.2-
$MAX_REBUILD
-updtr-amd64
.deb"
PACKAGE_NAME
=
"cellframe-node-
$NEW_VERSION
-updtr-
${
POSTFIX
}
.deb"
echo
"wget"
mkdir
-p
/tmp/cfupd/
wget
$STORAGE_URL
/
$PACKAGE_NAME
-O
/tmp/cfupd/
$PACKAGE_NAME
...
...
@@ -73,4 +83,4 @@ fi
dpkg
-i
/tmp/cfupd/
$PACKAGE_NAME
service cellframe-node restart
\ No newline at end of file
service cellframe-node restart
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment