From 54aaf493f0e4b54e03fd99fda8ef81dafbd182eb Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 17 Jun 2021 18:11:58 -0400 Subject: [PATCH] ceph-website: Use proper build env per branch Fixes: https://github.com/ceph/ceph.io/issues/161 Signed-off-by: David Galloway --- ceph-website/build/build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ceph-website/build/build b/ceph-website/build/build index 745b5e606..072ba5b43 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} -- 2.47.3