commit 58bba0994deac64c11074b1026eed34b9fe046c3
parent 194407a51b3260acf987d63e3105fa91ce55ce7d
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Sun, 28 Sep 2025 21:38:30 +0200
feat: add Jenkins and Dockerfile
Diffstat:
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -0,0 +1,8 @@
+FROM docker.io/ruby:3.2
+
+WORKDIR /usr/src/app
+COPY . /usr/src/app
+
+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-p0c", "${scmVars.GIT_COMMIT}")
+ buildahpush.execute("jekyll-p0c", "${scmVars.GIT_COMMIT}")
+}