mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-24 08:01:07 +02:00
* Better handle symlinks in artifact paths. * Fix a race condition in the local builder where Terraform wouldn't wait for local builds to finish before attempting to install vault on target nodes. * Make building the web ui configurable in the dev scenario. * Rename `vault_artifactory_artifact` to `build_artifactory_artifact` to better align with existing "build" modules. Signed-off-by: Ryan Cragun <me@ryan.ec>
25 lines
471 B
Bash
Executable File
25 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
set -eux -o pipefail
|
|
|
|
# Install yarn so we can build the UI
|
|
npm install --global yarn || true
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
root_dir="$(git rev-parse --show-toplevel)"
|
|
pushd "$root_dir" > /dev/null
|
|
|
|
if [ -n "$BUILD_UI" ] && [ "$BUILD_UI" = "true" ]; then
|
|
make ci-build-ui
|
|
fi
|
|
|
|
make ci-build
|
|
|
|
popd > /dev/null
|
|
|
|
echo "--> Bundling $BIN_PATH/* to $BUNDLE_PATH"
|
|
zip -r -j "$BUNDLE_PATH" "$BIN_PATH/"
|