Commit cdf5bb67 authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

initial commit of this Jekyll fork

parent 6d77ac69
......@@ -2,23 +2,25 @@ FROM sameersbn/gitlab-ci-multi-runner:0.6.2
MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org>
#
# a Gitlab CI container to be used with Hugo static site generator
#
# inspired by:
# https://github.com/jojomi/docker-hugo/blob/master/Dockerfile
# a Gitlab CI container to be used with Jekyll static site generator
#
# environment
ENV DEBIAN_FRONTEND=noninteractive
ENV HUGO_VERSION=0.15
# Hugo
RUN mkdir /tmp/hugo && \
cd /tmp/hugo/ && \
wget https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux_amd64.tar.gz && \
tar xzf hugo_${HUGO_VERSION}_linux_amd64.tar.gz && \
mv hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 /usr/bin/hugo && \
rm -r hugo_${HUGO_VERSION}_linux_amd64 && \
rm -r hugo_${HUGO_VERSION}_linux_amd64.tar.gz
# Ruby
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
ruby \
ruby-dev \
make \
gcc \
nodejs && \
rm -rf /var/lib/apt/lists/*
# Jekyll
RUN gem install jekyll bundle
VOLUME /output
\ No newline at end of file
# Gitlab CI Hugo runner
# Gitlab CI Jekyll runner
A Gitlab CI runner docker image for generating Hugo-managed static sites. Based on the great [`gitlab-ci-multi-runner`](https://hub.docker.com/r/sameersbn/gitlab-ci-multi-runner/), and inspired by [`docker-hugo`](https://github.com/jojomi/docker-hugo/blob/master/Dockerfile).
A Gitlab CI runner docker image for generating Jekyll-managed static sites. Based on the great [`gitlab-ci-multi-runner`](https://hub.docker.com/r/sameersbn/gitlab-ci-multi-runner/).
## Example `docker-compose` config
```
hugo-ci:
build: ./gitlab-ci-hugo-runner
jekyll-ci:
build: ./gitlab-ci-jekyll-runner
environment:
CI_SERVER_URL: "https://git.example.com/ci"
RUNNER_EXECUTOR: "shell"
RUNNER_DESCRIPTION: "Gitlab CI Hugo runner"
RUNNER_DESCRIPTION: "Gitlab CI Jekyllrunner"
RUNNER_TOKEN: "abcdef0123456789abcdef01234567"
volumes:
- "/var/www/:/output/"
- "/var/lib/gitlab-ci-hugo-runner/:/home/gitlab_ci_multi_runner/data/"
- "/var/lib/gitlab-ci-jekyll-runner/:/home/gitlab_ci_multi_runner/data/"
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment