Skip to content
Snippets Groups Projects
Commit 5b2ae9ed authored by alexandr.kravchenko's avatar alexandr.kravchenko
Browse files

Added reprepro integration stub. Now onto testing

parent d07e27a6
No related branches found
No related tags found
1 merge request!71Support 2649
This commit is part of merge request !71. Comments created here will be created in the context of that merge request.
...@@ -10,4 +10,4 @@ kelvin-node-schedule: ...@@ -10,4 +10,4 @@ kelvin-node-schedule:
stage: build stage: build
tags: tags:
- kelvin-node - kelvin-node
script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-node && ~/production/integration/reprepro/publish.sh debian.pub.demlabs.net stretch main && ~/production/integration/gitlab-CI/travis_test.sh script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-node
HOST_DISTR_VERSIONS="stretch buster" HOST_DISTR_VERSIONS="buster"
HOST_ARCH_VERSIONS="amd64" HOST_ARCH_VERSIONS="amd64"
PACKAGE_PATH=builds/deb/ PACKAGE_PATH=builds/deb/
REPO_DIR_SRC=/var/tmp/repository
DISTR_CODENAME=$HOST_DISTR_VERSIONS
REPO_ADDR=debian.pub.demlabs.net
REPO_DIR=/var/www/html/$REPO_ADDR
...@@ -2,17 +2,23 @@ ...@@ -2,17 +2,23 @@
echo "Deploying to $PACKAGE_PATH" echo "Deploying to $PACKAGE_PATH"
echo $wd echo $wd
cd $REPO_DIR
PKGFILES=($(ls build/*.deb)) PKGFILES=($(ls build/*.deb))
mv build/*.deb $wd/$PACKAGE_PATH || echo "[ERR] Something went wrong in publishing the package. Now aborting." mv build/*.deb $wd/$PACKAGE_PATH || echo "[ERR] Something went wrong in publishing the package. Now aborting."
if [ ! -z $UPDVER ]; then if [ ! -z $UPDVER ]; then
for pkgfile in $PKGFILES; do for pkgfile in $PKGFILES; do
ln -sf $wd/$PACKAGE_PATH/$pkgfile $wd/$PACKAGE_PATH/$pkgfile-latest ln -sf $wd/$PACKAGE_PATH/$pkgfile $wd/$PACKAGE_PATH/$pkgfile-latest
cp $wd/$PACKAGE_PATH/$pkgfile $REPO_DIR_SRC
done done
sudo reprepro -c "$DISTR_COMPONENT" --ask-passphrase includedeb "$DISTR_CODENAME" $REPO_DIR_SRC/*.deb
#Update into reprepro:
export -n "UPDVER" export -n "UPDVER"
#Need to create latest symlink to the project. #Need to create latest symlink to the project.
fi fi
cd $wd
#symlink name-actual to the latest version. #symlink name-actual to the latest version.
#build/deb/versions - for all files #build/deb/versions - for all files
#build/deb/${PROJECT}-latest - for symlinks. #build/deb/${PROJECT}-latest - for symlinks.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment