Skip to content

Commit 39b2e5d

Browse files
committed
Modify version capture in docs docker compose
1 parent 36757af commit 39b2e5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docker-compose.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ services:
2424
- -c
2525
- |
2626
set -e
27+
export PATCH_VERSION=$$(cat /main/+dj/version.m | grep 'v =' | sed 's/[^0-9]*/./g' | cut -c 2-6)
2728
if echo "$${MODE}" | grep -i live &>/dev/null; then
2829
mkdocs serve --config-file ./docs/mkdocs.yaml -a 0.0.0.0:80
2930
elif echo "$${MODE}" | grep -iE "qa|build" &>/dev/null; then
3031
git branch -D gh-pages || true
3132
git fetch $${UPSTREAM_REPO} gh-pages:gh-pages || true
32-
mike deploy --config-file ./docs/mkdocs.yaml -u $$(grep -oE '\d+\.\d+' /main/$${PACKAGE}/version.py) latest
33+
mike deploy --config-file ./docs/mkdocs.yaml -u $PATCH_VERSION latest
3334
mike set-default --config-file ./docs/mkdocs.yaml latest
3435
if echo "$${MODE}" | grep -i qa &>/dev/null; then
3536
mike serve --config-file ./docs/mkdocs.yaml -a 0.0.0.0:80

0 commit comments

Comments
 (0)