Build Jekyll site from CI workflow

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
bEn 2024-05-22 14:30:15 +02:00
parent 42a6f94691
commit 768c32865c
3 changed files with 10 additions and 2 deletions

View File

@ -44,3 +44,11 @@ jobs:
docker rmi hello-world:latest > /dev/null
docker version
docker compose version
- name: Build Jekyll image
id: build_image
run: |
docker-compose build jekyll
-name: Build Jekyll site
id: build_site
run: |
docker-compose run --rm jekyll build --verbose

View File

@ -15,7 +15,6 @@ services:
tty: true
hostname: jekyll.local
container_name: jekyll.local
command: bash
networks:
- bridge
deploy:

View File

@ -38,4 +38,5 @@ RUN echo "gem: --no-document --user-install --bindir /home/${user}/bin" >> /home
ENV PATH=/home/${user}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CMD [ 'jekyll', 's', 'source', './src', '--verbose', '--host 0.0.0.0', '--incremental' ]
ENTRYPOINT ["jekyll"]
CMD ["server", "--verbose", "--host", "0.0.0.0", "--incremental"]