5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-25 08:03:06 +00:00

Use environment variable for bundle env

So it works for standalone commands too
This commit is contained in:
Nick Sellen 2018-12-16 10:20:32 +00:00
parent 79ac451b4a
commit b1c23ea9f3

View File

@ -12,10 +12,12 @@ services:
jekyll: jekyll:
image: ruby:2.5.3 image: ruby:2.5.3
working_dir: /src
environment:
BUNDLE_PATH: /vendor
command: > command: >
sh -c ' sh -c '
cd /src && bundle &&
bundle --path /vendor &&
bundle exec jekyll build --destination /site --watch bundle exec jekyll build --destination /site --watch
' '
volumes: volumes: