Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
school
courses
Commits
e3748f8a
Verified
Commit
e3748f8a
authored
Jul 02, 2020
by
Laurent Heirendt
✈
Browse files
Merge branch 'develop'
parents
6160e914
0406d415
Pipeline
#29333
failed with stages
in 13 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e3748f8a
...
...
@@ -15,12 +15,16 @@ retrieve:repo:
expire_in
:
1 day
paths
:
-
courses.lcsb.uni.lu
rules
:
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == "master"
generate:index:
image
:
python
stage
:
generate
rules
:
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == "master"
script
:
-
python .ci/generateIndex.py
artifacts
:
...
...
@@ -31,6 +35,9 @@ generate:index:
build:website:
image
:
git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb
stage
:
build
rules
:
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == "master"
before_script
:
-
cd courses.lcsb.uni.lu
-
gem install bundler -v2.0.2
...
...
@@ -53,6 +60,7 @@ build:courses:
stage
:
build
rules
:
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == "master"
before_script
:
-
git submodule update --recursive --init
script
:
...
...
@@ -74,7 +82,8 @@ upload:
-
echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == "master"
script
:
-
scp -P $SSHPORT -r site/* $SSHCONNECT:~/web/latest
-
scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment