Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
le-edubar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
le6
le-edubar
Commits
cd349cac
There was a problem fetching the pipeline summary.
Commit
cd349cac
authored
Jun 7, 2018
by
Guilherme Becker Agge
Browse files
Options
Downloads
Patches
Plain Diff
SCRUM#463
: Add more testing stages on CI
parent
70029fe7
Branches
Branches containing commit
No related tags found
2 merge requests
!38
Develop to master
,
!32
SCRUM#463: Add more testing stages on CI
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.deploy.sh
+6
-5
6 additions, 5 deletions
.deploy.sh
with
6 additions
and
5 deletions
.deploy.sh
+
6
−
5
View file @
cd349cac
#!/bin/bash
#!/bin/bash
# shellcheck disable=SC2029
# This script uploads an includes a .deb package in our debian repository.
# This script uploads an includes a .deb package in our debian repository.
# The distribution is chosen based on the gitlab-ci stage we are on.
# The distribution is chosen based on the gitlab-ci stage we are on.
apt-get update
&&
apt-get
install
-y
dput ssh
apt-get update
&&
apt-get
install
-y
dput ssh
eval
$(
ssh-agent
-s
)
eval
"
$(
ssh-agent
-s
)
"
ssh-add <
(
echo
"
$PRIV_KEY
"
)
ssh-add <
(
echo
"
$PRIV_KEY
"
)
echo
"Deploy job name:
$CI_JOB_NAME
"
echo
"Deploy job name:
$CI_JOB_NAME
"
...
@@ -15,16 +16,16 @@ if [ "$CI_JOB_NAME" = "deploy_for_unstable" ]; then
...
@@ -15,16 +16,16 @@ if [ "$CI_JOB_NAME" = "deploy_for_unstable" ]; then
elif
[
"
$CI_JOB_NAME
"
=
"deploy_for_testing"
]
;
then
elif
[
"
$CI_JOB_NAME
"
=
"deploy_for_testing"
]
;
then
CHANGELOG
=
"package/debian/changelog"
CHANGELOG
=
"package/debian/changelog"
LINE
=
$(
head
-n
1
$CHANGELOG
)
LINE
=
$(
head
-n
1
$CHANGELOG
)
PACKAGE
=
$(
echo
$LINE
|
cut
-d
' '
-f1
)
PACKAGE
=
$(
echo
"
$LINE
"
|
cut
-d
' '
-f1
)
VERSION
=
$(
echo
$LINE
|
cut
-d
' '
-f2
|
grep
-o
-E
'[0-9]*\.[0-9]*\.[0-9]*'
)
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
"
REPREPRO_CMD
=
"reprepro -Vb /home/repository/www/le6 copysrc testing unstable
$PACKAGE
$VERSION
"
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/id_rsa repository@repo.c3sl.ufpr.br
"
$REPREPRO_CMD
"
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/id_rsa repository@repo.c3sl.ufpr.br
"
$REPREPRO_CMD
"
elif
[
"
$CI_JOB_NAME
"
=
"deploy_for_stable"
]
;
then
elif
[
"
$CI_JOB_NAME
"
=
"deploy_for_stable"
]
;
then
CHANGELOG
=
"package/debian/changelog"
CHANGELOG
=
"package/debian/changelog"
LINE
=
$(
head
-n
1
$CHANGELOG
)
LINE
=
$(
head
-n
1
$CHANGELOG
)
PACKAGE
=
$(
echo
$LINE
|
cut
-d
' '
-f1
)
PACKAGE
=
$(
echo
"
$LINE
"
|
cut
-d
' '
-f1
)
VERSION
=
$(
echo
$LINE
|
cut
-d
' '
-f2
|
grep
-o
-E
'[0-9]*\.[0-9]*\.[0-9]*'
)
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
"
REPREPRO_CMD
=
"reprepro -Vb /home/repository/www/le6 copysrc stable testing
$PACKAGE
$VERSION
"
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/id_rsa repository@repo.c3sl.ufpr.br
"
$REPREPRO_CMD
"
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/id_rsa repository@repo.c3sl.ufpr.br
"
$REPREPRO_CMD
"
...
...
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