Files
threshold/enos/modules/build_local/templates/build.sh
T
Ryan Cragun 23f1cdea27 enos: make the local build target configurable (#2313)
This makes the `make` build target that is used for local builder
variant configurable. This will allow us to utilize the local builder
variant in downstreams that might use different targets for their build.

* Make the local build target configurable
* Allow cross compiling `linux/amd64` on different platforms.
2022-12-19 14:35:10 -05:00

17 lines
293 B
Bash
Executable File

#!/bin/bash
set -eux -o pipefail
env
# Requirements
npm install --global yarn || true
# Go to the root of the boundary repo
root_dir="$(git rev-parse --show-toplevel)"
pushd "${root_dir}" > /dev/null
make ${BUILD_TARGET}
zip -j ${ARTIFACT_PATH}/boundary.zip bin/boundary
popd > /dev/null