Implement Jekyll CI workflow with docker #2

Merged
btlogy merged 60 commits from 1.test-ci into main 2024-05-23 12:16:39 +00:00
3 changed files with 10 additions and 2 deletions
Showing only changes of commit 768c32865c - Show all commits

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"]