2016-08-02 10:47:05 -04:00
|
|
|
# This template uses the java:8 docker image because there isn't any
|
|
|
|
# official JBake image at this moment
|
|
|
|
#
|
|
|
|
# JBake https://jbake.org/ is a Java based, open source, static site/blog generator for developers & designers
|
|
|
|
#
|
2017-06-26 11:36:29 -04:00
|
|
|
# This yml works with jBake 2.5.1
|
2016-08-02 10:47:05 -04:00
|
|
|
# Feel free to change JBAKE_VERSION version
|
|
|
|
#
|
|
|
|
# HowTo at: https://jorge.aguilera.gitlab.io/howtojbake/
|
|
|
|
|
|
|
|
image: java:8
|
|
|
|
|
|
|
|
variables:
|
2017-06-26 11:36:29 -04:00
|
|
|
JBAKE_VERSION: 2.5.1
|
2016-08-02 10:47:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
# We use SDKMan as tool for managing versions
|
|
|
|
before_script:
|
2017-06-26 11:36:29 -04:00
|
|
|
- apt-get update -qq && apt-get install -y -qq unzip zip
|
2016-08-02 10:47:05 -04:00
|
|
|
- curl -sSL https://get.sdkman.io | bash
|
|
|
|
- echo sdkman_auto_answer=true > /root/.sdkman/etc/config
|
|
|
|
- source /root/.sdkman/bin/sdkman-init.sh
|
|
|
|
- sdk install jbake $JBAKE_VERSION < /dev/null
|
|
|
|
- sdk use jbake $JBAKE_VERSION
|
|
|
|
|
|
|
|
# This build job produced the output directory of your site
|
|
|
|
pages:
|
|
|
|
script:
|
|
|
|
- jbake . public
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|