From: David Galloway Date: Thu, 17 Jun 2021 22:11:58 +0000 (-0400) Subject: ceph-website: Use proper build env per branch X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=54aaf493f0e4b54e03fd99fda8ef81dafbd182eb;p=ceph-build.git ceph-website: Use proper build env per branch Fixes: https://github.com/ceph/ceph.io/issues/161 Signed-off-by: David Galloway --- diff --git a/ceph-website/build/build b/ceph-website/build/build index 745b5e60..072ba5b4 100755 --- a/ceph-website/build/build +++ b/ceph-website/build/build @@ -11,7 +11,15 @@ BRANCH=$(echo $GIT_BRANCH | sed 's:.*/::') npm install -npm run build +if [ "$BRANCH" == "master" ]; then + npm run build:production +elif [ "$BRANCH" == "main" ]; then + npm run build:production +elif [ "$BRANCH" == "develop" ]; then + npm run build:production +else + npm run build:development +fi if [ ! -d /opt/www/${BRANCH} ]; then mkdir -p /opt/www/${BRANCH}