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
14
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
Merge requests
!72
Checking out the postfix version modification (How will changelogs work now?)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Checking out the postfix version modification (How will changelogs work now?)
support-2649
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
alexandr.kravchenko
requested to merge
support-2649
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
18f61837
1 commit,
5 years ago
1 file
+
22
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
prod_build/linux/debian/scripts/deploy.sh
+
22
−
0
Options
#!/bin/bash
repack
()
{
DEBNAME
=
$1
echo
"Renaming control on
$DEBNAME
"
mkdir
tmp
&&
cd
tmp
ar p ../
$DEBNAME
control.tar.gz |
tar
-xz
VERSION
=
$(
cat
control |
grep
Version |
cut
-d
':'
-f2
)
echo
"Version is
$VERSION
"
sed
-i
"s/
$VERSION
/
${
VERSION
}
-
$DISTR_CODENAME
/"
control
tar
czf control.tar.gz
*
[!
z]
ar r ../
$DEBNAME
control.tar.gz
cd
..
rm
-rf
tmp
}
echo
"Deploying to
$PACKAGE_PATH
"
echo
$wd
@@ -12,10 +28,16 @@ NOTONBUILDSERVER=0
gitlab-runner
-v
2&>> /dev/null
||
NOTONBUILDSERVER
=
$?
if
[[
$NOTONBUILDSERVER
==
0
]]
;
then
mkdir
-p
$REPO_DIR_SRC
cd
$REPO_DIR_SRC
for
pkgfile
in
$PKGFILES
;
do
cp
-v
$wd
/
$PACKAGE_PATH
/
$pkgfile
$REPO_DIR_SRC
for
variant
in
$HOST_DISTR_VERSIONS
;
do
ls
$pkgfile
|
grep
$variant
&&
DISTR_CODENAME
=
$variant
#Since we add a postfix into every debpackage done, we'll extract it that way.
done
repack
$pkgfile
done
cd
$REPO_DIR
echo
"Attempting to add packages into
$DISTR_VARIANT
section to
$DISTR_CODENAME
"
sudo
reprepro
-C
"
$DISTR_COMPONENT
"
--ask-passphrase
includedeb
"
$DISTR_CODENAME
"
$REPO_DIR_SRC
/
*
.deb
#Update into reprepro:
Loading