mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-06-28 10:45:13 +00:00
Refactor baseimage building to baseimage.sh
This commit is contained in:
@ -39,6 +39,27 @@ baseimage::release() {
|
||||
popd
|
||||
}
|
||||
|
||||
baseimage::builddocs() {
|
||||
mount_point="/mnt/docs"
|
||||
|
||||
docker run --rm \
|
||||
-ti \
|
||||
-v "${BASEIMAGE_PATH}"/docs:"${mount_point}" \
|
||||
"${BASEIMAGE_NAME}" \
|
||||
/bin/bash -c \
|
||||
"cd ${mount_point}
|
||||
pip3 install sphinx
|
||||
make html
|
||||
exit" \
|
||||
&> /dev/null
|
||||
|
||||
if [ "$?" == "0" ]; then
|
||||
echo "Built baseimage docs at ${BASEIMAGE_PATH}/docs/build/html!"
|
||||
else
|
||||
echo "Building baseimage docs failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
releasename() {
|
||||
local version
|
||||
local date
|
||||
|
Reference in New Issue
Block a user