2019-07-22 02:16:23 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
2019-07-22 04:12:19 +00:00
|
|
|
|
|
|
|
# serve
|
|
|
|
|
2020-05-31 20:23:59 +00:00
|
|
|
serve:
|
|
|
|
container_name: isabelline-serve
|
2020-09-01 01:03:56 +00:00
|
|
|
image: jekyll/jekyll:4
|
2019-09-06 12:43:02 +00:00
|
|
|
command: jekyll serve --host 0.0.0.0 --future --draft --force_polling --livereload
|
2019-07-23 03:22:11 +00:00
|
|
|
environment:
|
2019-07-22 02:16:23 +00:00
|
|
|
JEKYLL_ENV: local
|
|
|
|
ports:
|
|
|
|
- 4000:4000
|
|
|
|
- 35729:35729
|
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
2019-07-23 03:22:11 +00:00
|
|
|
- .bundle:/usr/local/bundle
|
2019-07-22 02:16:23 +00:00
|
|
|
|
2019-07-22 04:12:19 +00:00
|
|
|
# build and push to rubygems.org
|
2019-07-22 02:16:23 +00:00
|
|
|
|
|
|
|
gem-push:
|
|
|
|
container_name: jekyll-gem-push
|
2020-09-01 01:03:56 +00:00
|
|
|
image: jekyll/jekyll:4.0
|
2019-07-22 03:33:03 +00:00
|
|
|
command: >
|
2019-07-22 04:12:19 +00:00
|
|
|
bash -c "gem build -v jekyll-theme-isabelline.gemspec \
|
2019-07-22 04:31:38 +00:00
|
|
|
&& GEM_VER=`ruby -e '\
|
|
|
|
require \"rubygems\"; \
|
|
|
|
spec = Gem::Specification::load(\"jekyll-theme-isabelline.gemspec\"); \
|
|
|
|
puts \"#{spec.version}\"'` \
|
2019-07-23 04:13:51 +00:00
|
|
|
&& gem push jekyll-theme-isabelline-$${GEM_VER}.gem
|
2019-07-22 03:33:03 +00:00
|
|
|
"
|
2019-07-22 02:16:23 +00:00
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
2019-07-23 03:22:11 +00:00
|
|
|
- .bundle:/usr/local/bundle
|
|
|
|
- ./.gem:/root/.gem
|
2019-07-22 02:16:23 +00:00
|
|
|
|
2019-07-22 04:12:19 +00:00
|
|
|
# helpers
|
|
|
|
|
|
|
|
jekyll:
|
|
|
|
container_name: jekyll
|
2020-09-01 01:03:56 +00:00
|
|
|
image: jekyll/jekyll:4.0
|
2019-07-22 04:12:19 +00:00
|
|
|
entrypoint: jekyll
|
|
|
|
environment:
|
|
|
|
JEKYLL_ENV: local
|
|
|
|
volumes:
|
2019-07-23 03:22:11 +00:00
|
|
|
- .bundle:/usr/local/bundle
|
2019-07-22 04:12:19 +00:00
|
|
|
- .:/srv/jekyll
|
|
|
|
|
2019-07-22 02:16:23 +00:00
|
|
|
gem:
|
|
|
|
container_name: jekyll-gem
|
2020-09-01 01:03:56 +00:00
|
|
|
image: jekyll/jekyll:4.0
|
2019-07-22 02:16:23 +00:00
|
|
|
entrypoint: gem
|
|
|
|
volumes:
|
2019-07-23 03:22:11 +00:00
|
|
|
- .bundle:/usr/local/bundle
|
2019-07-22 02:16:23 +00:00
|
|
|
- .:/srv/jekyll
|
|
|
|
|
|
|
|
bundle:
|
2019-09-06 14:51:56 +00:00
|
|
|
container_name: bundle
|
2020-09-01 01:03:56 +00:00
|
|
|
image: jekyll/jekyll:4.0
|
2019-07-22 02:16:23 +00:00
|
|
|
entrypoint: bundle
|
|
|
|
volumes:
|
2020-09-01 01:03:56 +00:00
|
|
|
# - ./.bundle:/home/jekyll/.bundle
|
|
|
|
- ./.bundle:/usr/local/bundle
|
2019-07-22 02:16:23 +00:00
|
|
|
- .:/srv/jekyll
|
2019-07-22 04:12:19 +00:00
|
|
|
- ./.gem:/root/.gem
|