2021-06-01 19:11:07 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
export KBN_NP_PLUGINS_BUILT=true
|
|
|
|
|
|
|
|
echo "--- Build Kibana Distribution"
|
2021-10-15 18:58:20 +02:00
|
|
|
if [[ "${GITHUB_PR_LABELS:-}" == *"ci:build-all-platforms"* ]]; then
|
|
|
|
node scripts/build --all-platforms --skip-os-packages
|
|
|
|
else
|
|
|
|
node scripts/build
|
|
|
|
fi
|
2021-06-01 19:11:07 +02:00
|
|
|
|
|
|
|
echo "--- Archive Kibana Distribution"
|
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
|
|
installDir="$KIBANA_DIR/install/kibana"
|
|
|
|
mkdir -p "$installDir"
|
|
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
mkdir -p "$KIBANA_BUILD_LOCATION"
|
|
|
|
cp -pR install/kibana/. "$KIBANA_BUILD_LOCATION/"
|