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
17
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
1cf9e6ff
Commit
1cf9e6ff
authored
5 years ago
by
alexandr.kravchenko
Browse files
Options
Downloads
Patches
Plain Diff
Working on deployment to debian.pub.demlabs.net
parent
5b2ae9ed
No related branches found
No related tags found
1 merge request
!71
Support 2649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
prod_build/linux/debian/conf/publish
+3
-3
3 additions, 3 deletions
prod_build/linux/debian/conf/publish
prod_build/linux/debian/scripts/deploy.sh
+13
-8
13 additions, 8 deletions
prod_build/linux/debian/scripts/deploy.sh
with
16 additions
and
11 deletions
prod_build/linux/debian/conf/publish
+
3
−
3
View file @
1cf9e6ff
...
...
@@ -2,7 +2,7 @@ HOST_DISTR_VERSIONS="buster"
HOST_ARCH_VERSIONS="amd64"
PACKAGE_PATH=builds/deb/
REPO_DIR_SRC=/var/tmp/repository
DISTR_CODENAME=
$HOST_DISTR_VERSIONS
DISTR_CODENAME=
"stretch"
REPO_ADDR=debian.pub.demlabs.net
REPO_DIR=/var/www/html/
$REPO_ADDR
REPO_DIR=/var/www/html/
debian.pub.demlabs.net
DISTR_COMPONENT=main
This diff is collapsed.
Click to expand it.
prod_build/linux/debian/scripts/deploy.sh
+
13
−
8
View file @
1cf9e6ff
...
...
@@ -3,21 +3,26 @@
echo
"Deploying to
$PACKAGE_PATH
"
echo
$wd
cd
$REPO_DIR
PKGFILES
=(
$(
ls
build/
*
.deb
)
)
mv
build/
*
.deb
$wd
/
$PACKAGE_PATH
||
echo
"[ERR] Something went wrong in publishing the package. Now aborting."
cd
build
PKGFILES
=(
$(
ls
*
.deb
)
)
cd
..
mv
build/
*
.deb
$wd
/
$PACKAGE_PATH
/
||
echo
"[ERR] Something went wrong in publishing the package. Now aborting."
if
[
!
-z
$UPDVER
]
;
then
NOTONBUILDSERVER
=
0
gitlab-runner
-v
2&>> /dev/null
||
NOTONBUILDSERVER
=
$?
if
[[
$NOTONBUILDSERVER
==
0
]]
;
then
mkdir
-p
$REPO_DIR_SRC
for
pkgfile
in
$PKGFILES
;
do
ln
-sf
$wd
/
$PACKAGE_PATH
/
$pkgfile
$wd
/
$PACKAGE_PATH
/
$pkgfile
-latest
cp
$wd
/
$PACKAGE_PATH
/
$pkgfile
$REPO_DIR_SRC
cp
-v
$wd
/
$PACKAGE_PATH
/
$pkgfile
$REPO_DIR_SRC
done
sudo
reprepro
-c
"
$DISTR_COMPONENT
"
--ask-passphrase
includedeb
"
$DISTR_CODENAME
"
$REPO_DIR_SRC
/
*
.deb
cd
$REPO_DIR
sudo
reprepro
-C
"
$DISTR_COMPONENT
"
--ask-passphrase
includedeb
"
$DISTR_CODENAME
"
$REPO_DIR_SRC
/
*
.deb
#Update into reprepro:
export
-n
"UPDVER"
#Need to create latest symlink to the project.
fi
export
-n
"UPDVER"
rm
-r
$REPO_DIR_SRC
cd
$wd
#symlink name-actual to the latest version.
#build/deb/versions - for all files
...
...
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