diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-09-05 15:11:05 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-09-05 15:11:05 +0200 |
commit | 681bdc67234da6f69ab7feb30e1b3372da96608e (patch) | |
tree | 0d674bebfbcbb781eacd0f1fdccb646b0758ff6d /s2i/bin/assemble | |
parent | 50f7450f498243a91361b68263938121b434cd49 (diff) | |
download | s2i-jekyll-681bdc67234da6f69ab7feb30e1b3372da96608e.tar.gz |
update assemble + run
Diffstat (limited to 's2i/bin/assemble')
-rwxr-xr-x | s2i/bin/assemble | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble index 918395e..b82b59b 100755 --- a/s2i/bin/assemble +++ b/s2i/bin/assemble @@ -23,4 +23,10 @@ echo "---> Installing application source..." cp -Rf /tmp/src/. ./ echo "---> Building application from source..." -# TODO: Add build steps for your application, eg npm install, bundle install, pip install, etc. +if test -f Gemfile; then + bundle exec jekyll build +else + jekyll build +fi +cd _site +cp -a . /var/www/html |