feat(plugins): Refactor host plugins to boundary plugins (#3262)

This commit is contained in:
Louis Ruch authored and GitHub committed 2023-06-02 08:04:50 -07:00
1 parent 97977f1995
commit 281f217dcc
16 files changed
+37 -22

No files matched your search

+16 -1
View File
@@ -16,7 +16,22 @@ SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
export DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
for PLUGIN_TYPE in {"kms","host"}; do
# Create boundary plugins
echo "==> Building boundary plugins..."
rm -f $DIR/plugins/boundary/assets/boundary-plugin-*
for CURR_PLUGIN in $(ls $DIR/plugins/boundary/mains); do
cd $DIR/plugins/boundary/mains/$CURR_PLUGIN;
go build -v -o $DIR/plugins/boundary/assets/boundary-plugin-${CURR_PLUGIN}${BINARY_SUFFIX} .;
cd $DIR;
done;
cd $DIR/plugins/boundary/assets;
for CURR_PLUGIN in $(ls boundary-plugin*); do
gzip -f -9 $CURR_PLUGIN;
done;
cd $DIR;
# Create other plugins
for PLUGIN_TYPE in "kms"; do
echo "==> Building ${PLUGIN_TYPE} plugins..."
rm -f $DIR/plugins/$PLUGIN_TYPE/assets/boundary-plugin-${PLUGIN_TYPE}*
for CURR_PLUGIN in $(ls $DIR/plugins/$PLUGIN_TYPE/mains); do