mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-29 22:33:58 -06:00
Improve website deployment (#139)
* Fix issue of book not building * add dependencies * fix * test make4ht * fix cmd * Use own docker image * Add label * fix urls * Add validate command * build non mac version * tmp run * use smaller tex version * build full
This commit is contained in:
committed by
GitHub
parent
62a9e9a000
commit
509092c56e
22
makefile
22
makefile
@@ -1,11 +1,25 @@
|
||||
PHONY: build_pdf
|
||||
DOCKER_IMAGE := ghcr.io/hendricius/the-sourdough-framework
|
||||
|
||||
.PHONY: build_pdf
|
||||
build_pdf: build_docker_image
|
||||
docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make build_pdf"
|
||||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make"
|
||||
|
||||
.PHONY: bake
|
||||
bake: build_docker_image
|
||||
docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make bake"
|
||||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make bake"
|
||||
|
||||
.PHONY: build_docker_image
|
||||
build_docker_image:
|
||||
docker build -t the-sourdough-framework -f Dockerfile .
|
||||
docker build -t $(DOCKER_IMAGE) -f Dockerfile --platform linux/amd64 .
|
||||
|
||||
.PHONY: push_docker_image
|
||||
push_docker_image:
|
||||
docker push $(DOCKER_IMAGE):latest
|
||||
|
||||
.PHONY: website
|
||||
website:
|
||||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make website"
|
||||
|
||||
.PHONY: validate
|
||||
validate:
|
||||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make -j build_pdf build_serif_ebook"
|
||||
|
||||
Reference in New Issue
Block a user