2024-09-12 16:21:59 -07:00
|
|
|
#!/bin/bash
|
|
|
|
[[ $1 = "-f" ]] && force=force && shift
|
|
|
|
if [[ ! $(udbuild image exists -e ../build/.env) || $force ]] ; then
|
|
|
|
echo $force building image
|
2024-10-17 17:26:11 -07:00
|
|
|
pushd ../build > /dev/null || exit
|
2024-09-12 16:21:59 -07:00
|
|
|
./build -p -e .env -a build.env $@
|
2024-10-17 17:26:11 -07:00
|
|
|
popd > /dev/null
|
2024-09-12 16:21:59 -07:00
|
|
|
echo done building image
|
|
|
|
else
|
|
|
|
echo using existing image, use -f to force rebuild
|
|
|
|
fi
|
|
|
|
|