commit af2c6420c428061332fce9dba235dd6d800a8619
parent 7d4234aa5b05dbfc537291fd28d7e0a8f7fb2851
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Mon, 29 Sep 2025 18:57:43 +0200
feat: add Docker and Jenkinsfile
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-myheats", "${scmVars.GIT_COMMIT}")
+ buildahpush.execute("jekyll-myheats", "${scmVars.GIT_COMMIT}")
+}