From 603e390a8456ff527083a772227e94a9662ca02e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Mon, 17 Feb 2025 21:26:37 +0100 Subject: [PATCH] CI --- .forgejo/workflows/build-jekyll.yml | 17 +++++++++++++++++ Dockerfile | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 .forgejo/workflows/build-jekyll.yml create mode 100644 Dockerfile diff --git a/.forgejo/workflows/build-jekyll.yml b/.forgejo/workflows/build-jekyll.yml new file mode 100644 index 0000000..aa1343a --- /dev/null +++ b/.forgejo/workflows/build-jekyll.yml @@ -0,0 +1,17 @@ +on: + push: + branches: + - main +jobs: + test: + runs-on: docker + container: + image: git.hswro.org/fleg/hswro_org:latest + steps: + - uses: actions/checkout@v4 + with: + - run: bundle exec jekyll build + - uses: actions/upload-artifact@v3 + with: + name: generated-site + path: _site/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8bf0421 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM fedora:41 + +RUN dnf -y upgrade \ + && dnf install -y ruby ruby-devel openssl-devel redhat-rpm-config gcc-c++ @development-tools \ + && gem install --no-document jekyll -v 4.4.1 \ + && gem install --no-document jekyll-environment-variables \ + && gem install --no-document webrick -v 1.7