66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
version: '3'
|
|
services:
|
|
|
|
# serve
|
|
|
|
serve:
|
|
container_name: isabelline-serve
|
|
image: docker.rzen.dev/jekyll-serve
|
|
# command: jekyll serve --host 0.0.0.0 --future --draft --force_polling --livereload
|
|
environment:
|
|
JEKYLL_ENV: local
|
|
ports:
|
|
- 4000:4000
|
|
- 35729:35729
|
|
volumes:
|
|
- .:/site
|
|
- .bundle:/usr/local/bundle
|
|
|
|
# build and push to rubygems.org
|
|
|
|
gem-push:
|
|
container_name: jekyll-gem-push
|
|
image: docker.rzen.dev/jekyll
|
|
command: |
|
|
bash -c "gem build -v jekyll-theme-isabelline.gemspec
|
|
&& GEM_VER=`ruby -e '
|
|
require \"rubygems\";
|
|
spec = Gem::Specification::load(\"jekyll-theme-isabelline.gemspec\");
|
|
puts \"#{spec.version}\"'`
|
|
&& gem push jekyll-theme-isabelline-$${GEM_VER}.gem
|
|
"
|
|
volumes:
|
|
- .:/site
|
|
- .bundle:/usr/local/bundle
|
|
- ./.gem:/root/.gem
|
|
|
|
# helpers
|
|
|
|
jekyll:
|
|
container_name: jekyll
|
|
image: docker.rzen.dev/jekyll
|
|
entrypoint: jekyll
|
|
environment:
|
|
JEKYLL_ENV: local
|
|
volumes:
|
|
- .bundle:/usr/local/bundle
|
|
- .:/site
|
|
|
|
gem:
|
|
container_name: jekyll-gem
|
|
image: docker.rzen.dev/jekyll
|
|
entrypoint: gem
|
|
volumes:
|
|
- .bundle:/usr/local/bundle
|
|
- .:/site
|
|
- ./.gem:/root/.gem
|
|
|
|
bundle:
|
|
container_name: bundle
|
|
image: jekyll/jekyll:4
|
|
entrypoint: bundle
|
|
volumes:
|
|
- .bundle:/usr/local/bundle
|
|
- .:/site
|
|
- ./.gem:/root/.gem
|