debian-mirror-gitlab/lib/gitlab/ci/templates/Pages/JBake.gitlab-ci.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-30 23:02:18 +05:30
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/JBake.gitlab-ci.yml
2016-09-13 17:45:13 +05:30
# 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-09-10 17:25:29 +05:30
# This yml works with jBake 2.5.1
2019-09-04 21:01:54 +05:30
# Feel free to change JBAKE_VERSION version
2016-09-13 17:45:13 +05:30
#
# HowTo at: https://jorge.aguilera.gitlab.io/howtojbake/
image: java:8
variables:
2019-09-04 21:01:54 +05:30
JBAKE_VERSION: 2.5.1
2016-09-13 17:45:13 +05:30
# We use SDKMan as tool for managing versions
before_script:
2019-09-04 21:01:54 +05:30
- apt-get update -qq && apt-get install -y -qq unzip zip
- 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
2016-09-13 17:45:13 +05:30
# This build job produced the output directory of your site
pages:
2019-09-04 21:01:54 +05:30
script:
- jbake . public
artifacts:
paths:
- public