This docker image will build Jekyll sites on the Google Cloud Builder platform. It can also be used manually to build a Jekyll site using Docker.
Inspired by Gordon Leigh.
docker run -v "$PWD":/workspace --rm arakelian/jekyll-cloud-builder:latest
The following example builds a static website and uploads it to Google Cloud Storage, where it can be served directly. To get started, first create a bucket for your domain as described in Hosting a static website.
steps:
- name: arakelian/jekyll-cloud-builder:latest
- name: gcr.io/cloud-builders/gcloud
entrypoint: gsutil
args: ["-m", "rsync", "-r", "-c", "-d", "./_site", "gs://example.com"]