Automate build, test and deploy of a static Jekyll site

Click for: original source

Blog post by German engineer Lars Lühr in which he focuses on CICD for Jekyll. Jekyll is a static web site generator written in Ruby. In this post he wants to provide a complete tutorial on how to automatically build, test, integrate and deploy a Jekyll site to a FTP server.

His setup evolves around:

  • Git as preferred code version tooling
  • Gitlab Git repository as central repository
  • Gitlab CI Pipelines for build, test and deploy
  • Web and FTP servers

For the deploy-to-FTP-part we will use GitLabs secret variables.

He then explains how to use rakefile (rake and bundle) is code written in Ruby. He defines the tasks which can be called. Also touches on GitLab CI Security preparations.

Complete configuration together with example code is available, also explanation how pipeline works, staging strategy and more. Nice one!

[Read More]

Tags devops programming cicd web-development