Implement Jekyll CI workflow with docker #2
|
@ -44,3 +44,11 @@ jobs:
|
||||||
docker rmi hello-world:latest > /dev/null
|
docker rmi hello-world:latest > /dev/null
|
||||||
docker version
|
docker version
|
||||||
docker compose 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
|
||||||
|
|
|
@ -15,7 +15,6 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
hostname: jekyll.local
|
hostname: jekyll.local
|
||||||
container_name: jekyll.local
|
container_name: jekyll.local
|
||||||
command: bash
|
|
||||||
networks:
|
networks:
|
||||||
- bridge
|
- bridge
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
@ -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
|
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"]
|
||||||
|
|
Loading…
Reference in New Issue