Onboard Boundary to CRT (#1786)

Onboard Boundary to Common Release Tooling

Co-authored-by: mdrake <mdrake@hashicorp.com>
Co-authored-by: jeanneryan <jeanneryan@hashicorp.com>
This commit is contained in:
authored and GitHub committed 2022-02-01 07:41:27 -08:00
1 parent 5743580ca5
commit 84f6cc698c
34 files changed
+1016 -5047

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
#
# This script builds the required plugins.
set -e
ORIG_PATH=$(pwd);
echo "==> Building Host Plugins..."
for PLUGIN_TYPE in host; do
rm -f $ORIG_PATH/plugins/$PLUGIN_TYPE/assets/boundary-plugin-${PLUGIN_TYPE}*
for CURR_PLUGIN in $(ls $ORIG_PATH/plugins/$PLUGIN_TYPE/mains); do
cd $ORIG_PATH/plugins/$PLUGIN_TYPE/mains/$CURR_PLUGIN;
go build -v -o $ORIG_PATH/plugins/$PLUGIN_TYPE/assets/boundary-plugin-${PLUGIN_TYPE}-${CURR_PLUGIN} .;
cd $ORIG_PATH;
done;
cd $ORIG_PATH/plugins/$PLUGIN_TYPE/assets;
for CURR_PLUGIN in $(ls boundary-plugin*); do
gzip -f -9 $CURR_PLUGIN;
done;
cd $ORIG_PATH;
done;