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 ...@@ -2,23 +2,25 @@ FROM sameersbn/gitlab-ci-multi-runner:0.6.2
MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org> MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org>
# #
# a Gitlab CI container to be used with Hugo static site generator # a Gitlab CI container to be used with Jekyll static site generator
#
# inspired by:
# https://github.com/jojomi/docker-hugo/blob/master/Dockerfile
# #
# environment # environment
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV HUGO_VERSION=0.15 ENV HUGO_VERSION=0.15
# Hugo # Ruby
RUN mkdir /tmp/hugo && \ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
cd /tmp/hugo/ && \ apt-get install -y --no-install-recommends \
wget https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux_amd64.tar.gz && \ ca-certificates \
tar xzf hugo_${HUGO_VERSION}_linux_amd64.tar.gz && \ ruby \
mv hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 /usr/bin/hugo && \ ruby-dev \
rm -r hugo_${HUGO_VERSION}_linux_amd64 && \ make \
rm -r hugo_${HUGO_VERSION}_linux_amd64.tar.gz gcc \
nodejs && \
rm -rf /var/lib/apt/lists/*
# Jekyll
RUN gem install jekyll bundle
VOLUME /output 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 ## Example `docker-compose` config
``` ```
hugo-ci: jekyll-ci:
build: ./gitlab-ci-hugo-runner build: ./gitlab-ci-jekyll-runner
environment: environment:
CI_SERVER_URL: "https://git.example.com/ci" CI_SERVER_URL: "https://git.example.com/ci"
RUNNER_EXECUTOR: "shell" RUNNER_EXECUTOR: "shell"
RUNNER_DESCRIPTION: "Gitlab CI Hugo runner" RUNNER_DESCRIPTION: "Gitlab CI Jekyllrunner"
RUNNER_TOKEN: "abcdef0123456789abcdef01234567" RUNNER_TOKEN: "abcdef0123456789abcdef01234567"
volumes: volumes:
- "/var/www/:/output/" - "/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