Small fixes, easy serve using the build container image
/ build_website (push) Successful in 20s Details
/ build_and_push_container (push) Successful in 7s Details

This commit is contained in:
Michał Rudowicz 2025-02-24 08:14:50 +01:00
parent 5fa8e52f77
commit b8a9776a55
6 changed files with 13 additions and 9 deletions

View File

@ -4,7 +4,7 @@ jobs:
build_website:
runs-on: docker
container:
image: git.hswro.org/fleg/hswro_org_build:latest
image: git.hswro.org/hswro/hswro_org_build:latest
steps:
- uses: actions/checkout@v3
- run: bundle exec jekyll build
@ -18,7 +18,7 @@ jobs:
env:
REGISTRY_OWNER: hswro
container:
image: git.hswro.org/fleg/hswro_org_build:latest
image: git.hswro.org/hswro/hswro_org_build:latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3

View File

@ -1,5 +1,4 @@
source "https://rubygems.org"
gem "webrick", "~> 1.7"
gem "jekyll", "~> 4.3"
gem "jekyll-environment-variables"
gem "webrick", "~> 1.9"
gem "jekyll", "~> 4.4"

View File

@ -6,6 +6,8 @@
Assuming that [you have installed Jekyll properly](https://jekyllrb.com/docs/installation/), run: `bundle exec jekyll serve`
Alternative is to use docker/podman. In the repo directory: `docker run -p="4000:4000" --volume="$PWD:/data:Z" -it hs_wro_build:latest`
### Doesn't work for me or I'm too lazy to do it
Forgejo Actions should generate it for you, then you should be able to download the compressed website ready for viewing locally.

View File

@ -57,7 +57,7 @@
.hamburger-inner {
display: block;
top: 50%;
margin-top: math.div($hamburger-layer-height, -2);
margin-top: calc($hamburger-layer-height / -2);
&,
&::before,

View File

@ -27,7 +27,7 @@
transform: translate3d(0, $y-offset, 0) rotate(45deg);
&::before {
transform: rotate(-45deg) translate3d(math.div($hamburger-layer-width, -7), $hamburger-layer-spacing * -1, 0);
transform: rotate(-45deg) translate3d(calc($hamburger-layer-width / -7), $hamburger-layer-spacing * -1, 0);
opacity: 0;
}

View File

@ -6,6 +6,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
git nodejs git buildah \
&& 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 --no-document webrick -v 1.9 \
&& gem install bundler
EXPOSE 4000
WORKDIR /data
CMD bundle install && bundle exec jekyll serve --verbose --host 0.0.0.0