[ci] Fix build argument labels (#138322)

* [ci] Fix build arguments

* without quotes
This commit is contained in:
Jonathan Budzenski 2022-08-10 10:02:17 -04:00 committed by GitHub
parent b8f07a1ccf
commit e2401c97e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,17 +9,12 @@ export KBN_NP_PLUGINS_BUILT=true
echo "--- Build Kibana Distribution"
BUILD_ARGS=""
if is_pr_with_label "ci:build-all-platforms"; then
BUILD_ARGS="--all-platforms --skip-os-packages"
fi
if is_pr_with_label "ci:build-os-packages"; then
BUILD_ARGS="--all-platforms --docker-cross-compile"
fi
if ! is_pr_with_label "ci:build-canvas-shareable-runtime"; then
BUILD_ARGS="$BUILD_ARGS --skip-canvas-shareable-runtime"
fi
node scripts/build "$BUILD_ARGS"
is_pr_with_label "ci:build-all-platforms" && BUILD_ARGS="--all-platforms"
is_pr_with_label "ci:build-docker-cross-compile" && BUILD_ARG="$BUILD_ARGS --docker-cross-compile"
is_pr_with_label "ci:build-os-packages" || BUILD_ARGS="$BUILD_ARGS --skip-os-packages"
is_pr_with_label "ci:build-canvas-shareable-runtime" || BUILD_ARGS="$BUILD_ARGS --skip-canvas-shareable-runtime"
is_pr_with_label "ci:build-docker-contexts" || BUILD_ARGS="$BUILD_ARGS --skip-docker-contexts"
node scripts/build $BUILD_ARGS
if is_pr_with_label "ci:build-cloud-image"; then
echo "$KIBANA_DOCKER_PASSWORD" | docker login -u "$KIBANA_DOCKER_USERNAME" --password-stdin docker.elastic.co