]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-website: Use proper build env per branch 1848/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 17 Jun 2021 22:11:58 +0000 (18:11 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 18 Jun 2021 15:22:57 +0000 (11:22 -0400)
Fixes: https://github.com/ceph/ceph.io/issues/161
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-website/build/build

index 745b5e6069a33b0c3d043dbbafc5c4a7ebceaea2..072ba5b430c452aff9fbaf82a209bbe5090f79b9 100755 (executable)
@@ -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}