Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic-practice-pages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
school
git
basic-practice-pages
Commits
91598ea6
Verified
Commit
91598ea6
authored
4 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
change in yml
parent
05a92552
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23731
passed
4 years ago
Stage: index
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-11
18 additions, 11 deletions
.gitlab-ci.yml
with
18 additions
and
11 deletions
.gitlab-ci.yml
+
18
−
11
View file @
91598ea6
# In case something goes horribly wrong, you can fall back to `image: ruby:latest`
image
:
git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.4
stages
:
-
index
-
build
...
...
@@ -16,19 +13,29 @@ index:
# This will try to build the web site, and store the result in "build" directory
build
:
image
:
$CI_REGISTRY/r3/docker/jekyll-lcsb:1.4
stage
:
build
rules
:
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == "master"
variables
:
JEKYLL_ENV
:
production
artifacts
:
expire_in
:
3 days
paths
:
-
build
before_script
:
-
bundle install
-
apt-get -qq update
-
apt-get install -y -qq jq unzip git-lfs
-
git submodule update --recursive --init
-
gem install bundler:2.0.2 && bundle install
script
:
-
'
echo
"baseurl:
/$CI_PROJECT_NAME"
>>
_config_ci.yml'
-
'
echo
"url:
https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN"
>>
_config_ci.yml'
-
bundle exec jekyll build -d build --config "_config.yml,_config_ci.yml"
-
BASEURL="school/git/basic-practice-pages/";
-
bundle exec jekyll build --baseurl="$BASEURL" -d build
artifacts
:
expire_in
:
1 day
paths
:
-
build
# This will actually deploy the web site when pushing to master
pages
:
...
...
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