aboutsummaryrefslogtreecommitdiffstats
path: root/s2i/bin/assemble
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-09-05 15:11:05 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-09-05 15:11:05 +0200
commit681bdc67234da6f69ab7feb30e1b3372da96608e (patch)
tree0d674bebfbcbb781eacd0f1fdccb646b0758ff6d /s2i/bin/assemble
parent50f7450f498243a91361b68263938121b434cd49 (diff)
downloads2i-jekyll-681bdc67234da6f69ab7feb30e1b3372da96608e.tar.gz
update assemble + run
Diffstat (limited to 's2i/bin/assemble')
-rwxr-xr-xs2i/bin/assemble8
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