You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/scripts/uigen.sh

22 lines
509 B

#!/bin/sh
set -e
origdir=$(pwd)
tempdir=$(mktemp -d update-ui-assets.XXXXXX)
ui_commitish=${UI_COMMITISH:-develop}
cd $tempdir
git clone https://github.com/hashicorp/watchtower-ui
cd watchtower-ui
git fetch origin ${ui_commitish}
git checkout ${ui_commitish}
docker-compose -f docker-compose-embedding.yml run build
cd $origdir
go-bindata -fs -o internal/ui/assets.go -pkg ui -prefix "${origdir}/${tempdir}/watchtower-ui/ui/core/dist" "${origdir}/${tempdir}/watchtower-ui/ui/core/dist"
rm -rf $tempdir