diary-website

Website for diary
git clone https://git.in0rdr.ch/diary-website.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit c076cd81a041bdc0cf5154f80f5eaa3bd0bd4e1b
parent 31092754e037e0f81510a433337113b917baec42
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Mon, 29 Sep 2025 18:50:58 +0200

feat: add Docker and Jenkinsfile

Diffstat:
ADockerfile | 13+++++++++++++
AJenkinsfile | 11+++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,13 @@ +FROM docker.io/ruby:3.2 + +WORKDIR /usr/src/app +COPY . /usr/src/app + +# Copy rendered man pages +RUN git clone --depth 1 https://git.in0rdr.ch/diary.git /tmp/diary.git +RUN cp /tmp/diary.git/man1/diary.1.html man.html +RUN cp /tmp/diary.git/man1/style.css style.css + +RUN bundle config set path 'vendor/bundle' +RUN bundle install +CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--port", "4000"] diff --git a/Jenkinsfile b/Jenkinsfile @@ -0,0 +1,11 @@ +@Library('in0rdr-jenkins-lib@master') _ + +def buildahbud = new BuildahBud(this) +def buildahpush = new BuildahPush(this) + +node('podman'){ + scmVars = checkout(scm) + + buildahbud.execute([:], ".", "jekyll-diary", "${scmVars.GIT_COMMIT}") + buildahpush.execute("jekyll-diary", "${scmVars.GIT_COMMIT}") +}