1
0
Fork 0

Compare commits

..

4 Commits
main ... main

Author SHA1 Message Date
Michał Rudowicz aa296ee57a Test build-docker CI stage
/ build_website (push) Successful in 8s Details
/ build_and_push_container (push) Failing after 3s Details
2025-02-23 09:25:16 +01:00
Michał Rudowicz cd3cedd21d serve dockerfile, move dockerfiles to separate directory 2025-02-23 08:55:09 +01:00
Michał Rudowicz 07a78f2f5f Add Bundler to dockerfile, fix build name
/ build_website (push) Successful in 8s Details
2025-02-22 23:32:46 +01:00
Michał Rudowicz 914b3b5317 Roll back the checkout action to v3
/ test (push) Successful in 21s Details
2025-02-22 23:20:13 +01:00
5 changed files with 37 additions and 10 deletions

View File

@ -3,15 +3,24 @@ on:
branches: branches:
- main - main
jobs: jobs:
test: build_website:
runs-on: docker runs-on: docker
container: container:
image: git.hswro.org/fleg/hswro_org:latest image: git.hswro.org/fleg/hswro_org:latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
with: with:
- run: bundle exec jekyll build - run: bundle exec jekyll build
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: generated-site name: generated-site
path: _site/ path: _site/
build_and_push_container:
runs-on: docker
container:
image: git.hswro.org/fleg/hswro_org:latest
steps:
- uses: actions/download-artifact@v3
with:
- run: find
- run: podman version

View File

@ -1,7 +0,0 @@
FROM fedora:41
RUN dnf -y upgrade \
&& dnf install -y ruby ruby-devel openssl-devel redhat-rpm-config gcc-c++ @development-tools nodejs git \
&& gem install --no-document jekyll -v 4.4.1 \
&& gem install --no-document jekyll-environment-variables \
&& gem install --no-document webrick -v 1.7

View File

@ -26,6 +26,7 @@ exclude:
- vendor/cache/ - vendor/cache/
- vendor/gems/ - vendor/gems/
- vendor/ruby/ - vendor/ruby/
- docker/
- LICENSE.md - LICENSE.md
- LICENSE - LICENSE
- README.md - README.md

11
docker/build.Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y --no-install-recommends \
ruby-full build-essential zlib1g-dev \
build-essential \
git nodejs git podman \
&& rm -rf /var/lib/apt/lists/* \
&& gem install --no-document jekyll -v 4.4.1 \
&& gem install --no-document jekyll-environment-variables \
&& gem install --no-document webrick -v 1.7 \
&& gem install bundler

13
docker/serve.Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM busybox:1.35
# Create a non-root user to own the files and run our server
RUN adduser -D static
USER static
WORKDIR /home/static
# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY . .
# Run BusyBox httpd
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]