Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
platform
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
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
platform
Commits
d9d38bb2
There was a problem fetching the pipeline summary.
Verified
Commit
d9d38bb2
authored
7 years ago
by
Varac
Browse files
Options
Downloads
Patches
Plain Diff
CI: Test staging deb repo component
Resolves:
#8871
parent
1848c4c1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!126
CI: Test staging deb repo component
Pipeline
#
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-1
8 additions, 1 deletion
.gitlab-ci.yml
tests/platform-ci/ci-build.sh
+6
-2
6 additions, 2 deletions
tests/platform-ci/ci-build.sh
with
14 additions
and
3 deletions
.gitlab-ci.yml
+
8
−
1
View file @
d9d38bb2
...
...
@@ -51,13 +51,20 @@ catalog:
script
:
-
su -c '/usr/local/bin/bundle exec rake catalog' cirunner
deploy_test
:
deploy_test:
master
:
stage
:
deploy
except
:
-
master
script
:
-
su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner
deploy_test:staging
:
stage
:
deploy
variables
:
COMPONENT
:
"
staging"
script
:
-
su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner
# However, sometimes it's important to have a way of triggering a deploy
# from scratch manually even from the master branch, when i.e. new packages
# got uploaded to the master component of the platform deb repo.
...
...
This diff is collapsed.
Click to expand it.
tests/platform-ci/ci-build.sh
+
6
−
2
View file @
d9d38bb2
...
...
@@ -39,6 +39,9 @@ ROOTDIR=$(readlink -f "$(dirname $0)")
# leap_platform
PLATFORMDIR
=
$(
readlink
-f
"
${
ROOTDIR
}
/../.."
)
# deb repo component to configure
COMPONENT
=
${
COMPONENT
:-
"master"
}
# In the gitlab CI pipeline leap is installed in a different
# stage by bundle. To debug you can run a single CI job locally
# so we install leap_cli as gem here.
...
...
@@ -88,7 +91,7 @@ build_from_scratch() {
# Create cloud.json needed for `leap vm` commands using AWS credentials
which jq
||
(
apt-get update
-y
&&
apt-get
install
jq
-y
)
# D
s
iable xtrace
# Di
s
able xtrace
set
+x
[
-z
"
$AWS_ACCESS_KEY
"
]
&&
fail
"
\$
AWS_ACCESS_KEY is not set - please provide it as env variable."
...
...
@@ -102,7 +105,8 @@ build_from_scratch() {
[
-d
"./tags"
]
||
mkdir
"./tags"
/bin/echo
"{
\"
environment
\"
:
\"
$TAG
\"
}"
| /usr/bin/json_pp
>
"
${
PROVIDERDIR
}
/tags/
${
TAG
}
.json"
pwd
# configure deb repo component
echo
'{}'
| jq
".sources.platform.apt |= {
\"
source
\"
:
\"
http://deb.leap.se/platform
\"
,
\"
component
\"
:
\"
${
COMPONENT
}
\"
}"
>
common.json
# remove old cached nodes
echo
"Removing old cached nodes..."
...
...
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