Small fixes, easy serve using the build container image
This commit is contained in:
parent
5fa8e52f77
commit
fda68da43a
|
|
@ -4,7 +4,7 @@ jobs:
|
||||||
build_website:
|
build_website:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.hswro.org/fleg/hswro_org_build:latest
|
image: git.hswro.org/hswro/hswro_org_build:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: bundle exec jekyll build
|
- run: bundle exec jekyll build
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
REGISTRY_OWNER: hswro
|
REGISTRY_OWNER: hswro
|
||||||
container:
|
container:
|
||||||
image: git.hswro.org/fleg/hswro_org_build:latest
|
image: git.hswro.org/hswro/hswro_org_build:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
|
|
||||||
5
Gemfile
5
Gemfile
|
|
@ -1,5 +1,4 @@
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "webrick", "~> 1.7"
|
gem "webrick", "~> 1.9"
|
||||||
gem "jekyll", "~> 4.3"
|
gem "jekyll", "~> 4.4"
|
||||||
gem "jekyll-environment-variables"
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,12 @@
|
||||||
|
|
||||||
Assuming that [you have installed Jekyll properly](https://jekyllrb.com/docs/installation/), run: `bundle exec jekyll serve`
|
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 git.hswro.org/hswro/hswro_org_build:latest
|
||||||
|
```
|
||||||
|
|
||||||
### Doesn't work for me or I'm too lazy to do it
|
### 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.
|
Forgejo Actions should generate it for you, then you should be able to download the compressed website ready for viewing locally.
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
.hamburger-inner {
|
.hamburger-inner {
|
||||||
display: block;
|
display: block;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
margin-top: math.div($hamburger-layer-height, -2);
|
margin-top: calc($hamburger-layer-height / -2);
|
||||||
|
|
||||||
&,
|
&,
|
||||||
&::before,
|
&::before,
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
transform: translate3d(0, $y-offset, 0) rotate(45deg);
|
transform: translate3d(0, $y-offset, 0) rotate(45deg);
|
||||||
|
|
||||||
&::before {
|
&::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;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
git nodejs git buildah \
|
git nodejs git buildah \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& gem install --no-document jekyll -v 4.4.1 \
|
&& gem install --no-document jekyll -v 4.4.1 \
|
||||||
&& gem install --no-document jekyll-environment-variables \
|
&& gem install --no-document webrick -v 1.9 \
|
||||||
&& gem install --no-document webrick -v 1.7 \
|
|
||||||
&& gem install bundler
|
&& gem install bundler
|
||||||
|
|
||||||
|
EXPOSE 4000
|
||||||
|
WORKDIR /data
|
||||||
|
CMD bundle install && bundle exec jekyll serve --verbose --host 0.0.0.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue