Skip to content
Snippets Groups Projects
Verified Commit 91598ea6 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

change in yml

parent 05a92552
No related branches found
No related tags found
No related merge requests found
Pipeline #23731 passed
# 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment