Skip to content
Snippets Groups Projects
Commit 70029fe7 authored by Guilherme Becker Agge's avatar Guilherme Becker Agge
Browse files

SCRUM#463: Add more testing stages on CI

parent d45addf6
Branches
No related tags found
2 merge requests!38Develop to master,!32SCRUM#463: Add more testing stages on CI
Pipeline #
......@@ -5,7 +5,7 @@
apt-get update && apt-get install -y dput ssh
eval "$(ssh-agent -s)"
eval $(ssh-agent -s)
ssh-add <(echo "$PRIV_KEY")
echo "Deploy job name: $CI_JOB_NAME"
......@@ -15,19 +15,17 @@ if [ "$CI_JOB_NAME" = "deploy_for_unstable" ]; then
elif [ "$CI_JOB_NAME" = "deploy_for_testing" ]; then
CHANGELOG="package/debian/changelog"
LINE=$(head -n 1 $CHANGELOG)
PACKAGE=$(echo "$LINE" | cut -d' ' -f1)
VERSION=$(echo "$LINE" | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
PACKAGE=$(echo $LINE | cut -d' ' -f1)
VERSION=$(echo $LINE | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
REPREPRO_CMD="reprepro -Vb /home/repository/www/le6 copysrc testing unstable $PACKAGE $VERSION"
# shellcheck disable=SC2029
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa repository@repo.c3sl.ufpr.br "$REPREPRO_CMD"
elif [ "$CI_JOB_NAME" = "deploy_for_testing" ]; then
elif [ "$CI_JOB_NAME" = "deploy_for_stable" ]; then
CHANGELOG="package/debian/changelog"
LINE=$(head -n 1 $CHANGELOG)
PACKAGE=$(echo "$LINE" | cut -d' ' -f1)
VERSION=$(echo "$LINE" | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
PACKAGE=$(echo $LINE | cut -d' ' -f1)
VERSION=$(echo $LINE | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
REPREPRO_CMD="reprepro -Vb /home/repository/www/le6 copysrc stable testing $PACKAGE $VERSION"
# shellcheck disable=SC2029
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa repository@repo.c3sl.ufpr.br "$REPREPRO_CMD"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment