2020-06-30 11:26:22 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
origdir=$(pwd)
|
|
|
|
|
tempdir=$(mktemp -d update-ui-assets.XXXXXX)
|
|
|
|
|
ui_commitish=${UI_COMMITISH:-develop}
|
|
|
|
|
|
|
|
|
|
cd $tempdir
|
2020-08-10 17:15:02 -04:00
|
|
|
git clone https://github.com/hashicorp/boundary-ui
|
|
|
|
|
cd boundary-ui
|
2020-06-30 11:26:22 -04:00
|
|
|
git fetch origin ${ui_commitish}
|
|
|
|
|
git checkout ${ui_commitish}
|
|
|
|
|
|
|
|
|
|
docker-compose -f docker-compose-embedding.yml run build
|
|
|
|
|
|
|
|
|
|
cd $origdir
|
|
|
|
|
|
2020-08-10 17:15:02 -04:00
|
|
|
go-bindata -fs -o internal/ui/assets.go -pkg ui -prefix "${origdir}/${tempdir}/boundary-ui/ui/core/dist" "${origdir}/${tempdir}/boundary-ui/ui/core/dist"
|
2020-06-30 11:26:22 -04:00
|
|
|
|
|
|
|
|
rm -rf $tempdir
|