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
Commits
18f61837
Commit
18f61837
authored
5 years ago
by
alexandr.kravchenko
Browse files
Options
Downloads
Patches
Plain Diff
Checking out the postfix version modification (How will changelogs work now?)
parent
6b57bf38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
Checking out the postfix version modification (How will changelogs work now?)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prod_build/linux/debian/scripts/deploy.sh
+22
-0
22 additions, 0 deletions
prod_build/linux/debian/scripts/deploy.sh
with
22 additions
and
0 deletions
prod_build/linux/debian/scripts/deploy.sh
+
22
−
0
View file @
18f61837
#!/bin/bash
#!/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
"Deploying to
$PACKAGE_PATH
"
echo
$wd
echo
$wd
...
@@ -12,10 +28,16 @@ NOTONBUILDSERVER=0
...
@@ -12,10 +28,16 @@ NOTONBUILDSERVER=0
gitlab-runner
-v
2&>> /dev/null
||
NOTONBUILDSERVER
=
$?
gitlab-runner
-v
2&>> /dev/null
||
NOTONBUILDSERVER
=
$?
if
[[
$NOTONBUILDSERVER
==
0
]]
;
then
if
[[
$NOTONBUILDSERVER
==
0
]]
;
then
mkdir
-p
$REPO_DIR_SRC
mkdir
-p
$REPO_DIR_SRC
cd
$REPO_DIR_SRC
for
pkgfile
in
$PKGFILES
;
do
for
pkgfile
in
$PKGFILES
;
do
cp
-v
$wd
/
$PACKAGE_PATH
/
$pkgfile
$REPO_DIR_SRC
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
done
cd
$REPO_DIR
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
sudo
reprepro
-C
"
$DISTR_COMPONENT
"
--ask-passphrase
includedeb
"
$DISTR_CODENAME
"
$REPO_DIR_SRC
/
*
.deb
#Update into reprepro:
#Update into reprepro:
...
...
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