Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
core
picodata
Commits
4dda8f5b
Commit
4dda8f5b
authored
2 years ago
by
Alexey Protsenko
Committed by
Yaroslav Dynnikov
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat(ci): add ubuntu jammy deploy
parent
09c773b7
No related branches found
No related tags found
1 merge request
!321
feat(ci): add ubuntu jammy deploy
Pipeline
#13113
passed
2 years ago
Stage: build-base-image
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+15
-6
15 additions, 6 deletions
.gitlab-ci.yml
debian/rules
+4
-1
4 additions, 1 deletion
debian/rules
with
19 additions
and
7 deletions
.gitlab-ci.yml
+
15
−
6
View file @
4dda8f5b
...
...
@@ -206,10 +206,12 @@ pack-ubuntu:
script
:
-
|
pushd tarantool-sys; export VER_TNT=$(git describe --long | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\1.\2/p'); popd
OS=ubuntu DIST=focal PRESERVE_ENVVARS=VER_TNT BUILDDIR=$PWD/build_ubuntu/ RELEASE=${DIST} packpack/packpack
OS=ubuntu DIST=focal PRESERVE_ENVVARS=VER_TNT BUILDDIR=$PWD/build_${DIST}/ RELEASE=${DIST} packpack/packpack
OS=ubuntu DIST=jammy PRESERVE_ENVVARS=VER_TNT BUILDDIR=$PWD/build_${DIST}/ RELEASE=${DIST} packpack/packpack
artifacts
:
paths
:
-
build_ubuntu/*.deb
-
build_focal/*.deb
-
build_jammy/*.deb
dependencies
:
[]
pack-debian
:
...
...
@@ -276,12 +278,19 @@ deploy-job:
-
ssh -o stricthostkeychecking=no ansible@94.26.239.246 "cd /data/nginx/www/packrepo/tarantool-picodata/el/8/ && createrepo --update x86_64 && gpg --no-tty --yes -u kdy@picodata.io --detach-sign --armor x86_64/repodata/repomd.xml"
-
echo "rpm-centos8-packet successfully deployed."
-
echo
# Ubuntu
-
echo "Deploying ubuntu deb-packets..."
# Ubuntu
focal
-
echo "Deploying ubuntu
focal
deb-packets..."
-
ssh -o stricthostkeychecking=no ansible@94.26.239.246 "mkdir -p ~/.deb/ubuntu"
-
scp -o stricthostkeychecking=no build_
ubuntu
/picodata*deb ansible@94.26.239.246:.deb/ubuntu/
-
scp -o stricthostkeychecking=no build_
focal
/picodata*deb ansible@94.26.239.246:.deb/ubuntu/
-
ssh -o stricthostkeychecking=no ansible@94.26.239.246 "reprepro -b /data/nginx/www/packrepo/tarantool-picodata/ubuntu/ -C main includedeb focal ~/.deb/ubuntu/picodata*focal*deb; rm ~/.deb/ubuntu/picodata*focal*deb"
-
echo "ubuntu deb-packets successfully deployed."
-
echo "ubuntu focal deb-packets successfully deployed."
-
echo
# Ubuntu jammy
-
echo "Deploying ubuntu jammy deb-packets..."
-
ssh -o stricthostkeychecking=no ansible@94.26.239.246 "mkdir -p ~/.deb/ubuntu"
-
scp -o stricthostkeychecking=no build_jammy/picodata*deb ansible@94.26.239.246:.deb/ubuntu/
-
ssh -o stricthostkeychecking=no ansible@94.26.239.246 "reprepro -b /data/nginx/www/packrepo/tarantool-picodata/ubuntu/ -C main includedeb jammy ~/.deb/ubuntu/picodata*jammy*deb; rm ~/.deb/ubuntu/picodata*jammy*deb"
-
echo "ubuntu jammy deb-packets successfully deployed."
-
echo
# Debian
-
echo "Deploying debian packets..."
...
...
This diff is collapsed.
Click to expand it.
debian/rules
+
4
−
1
View file @
4dda8f5b
...
...
@@ -4,9 +4,12 @@
build_dir=debian/PKG_NAME
PKG_PREFIX=/usr/bin/PKG_NAME
override_dh_auto_clean:
echo "Nothing to clean on build"
override_dh_auto_build:
sudo mkdir -m 777 ~
make install-cargo
make install-cargo
make build
override_dh_auto_test: ;
...
...
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