Мелкие доработки Makefile

This commit is contained in:
2025-11-22 22:32:37 +08:00
parent 49b85a6bee
commit 88586d15a2

View File

@@ -1,4 +1,4 @@
## image: Run mkdocs with live-reloading ## image: Run mkdocs with live-reloading (localhost:3000)
live: live:
@echo "Wait until container starts and open http://localhost:3000 to see live preview" @echo "Wait until container starts and open http://localhost:3000 to see live preview"
@docker run \ @docker run \
@@ -6,18 +6,21 @@ live:
--rm \ --rm \
--interactive \ --interactive \
--tty \ --tty \
-p 3000:8000 \ --publish 3000:8000 \
-v ${PWD}:/docs \ --volume ${PWD}:/docs \
--name m3u-su-docs-builder \
squidfunk/mkdocs-material:9.6.20 squidfunk/mkdocs-material:9.6.20
## image: Build local static site ## image: Build local static site
build: build:
@echo "Wait until mkdocs finish"
@docker run \ @docker run \
--pull always \ --pull always \
--rm \ --rm \
--interactive \ --interactive \
--tty \ --tty \
-v ${PWD}:/docs \ --volume ${PWD}:/docs \
--name m3u-su-docs-builder \
squidfunk/mkdocs-material:9.6.20 build squidfunk/mkdocs-material:9.6.20 build
## image: Build docker image ## image: Build docker image
@@ -31,9 +34,14 @@ image:
push: push:
@docker push git.axenov.dev/iptv/m3u-su-docs:latest @docker push git.axenov.dev/iptv/m3u-su-docs:latest
## push: Push docker image to registry ## run: Run docker image (localhost:3001)
run: run:
@docker run -p 3001:80 git.axenov.dev/iptv/m3u-su-docs:latest @echo "Wait until container starts and open http://localhost:3001 to see ready static website"
@docker run \
--rm \
--publish 3001:80 \
--name m3u-su-docs \
git.axenov.dev/iptv/m3u-su-docs:latest
## help: Show this message and exit ## help: Show this message and exit
help: Makefile help: Makefile