-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into review_baking
- Loading branch information
Showing
5 changed files
with
44 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
DOCKER_IMAGE := ghcr.io/hendricius/the-sourdough-framework | ||
.DEFAULT_GOAL := build_pdf | ||
|
||
.PHONY: build_pdf | ||
build_pdf: mrproper | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make" | ||
DOCKER_IMAGE := ghcr.io/hendricius/the-sourdough-framework | ||
DOCKER_CMD := docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c | ||
|
||
.PHONY: bake | ||
bake: mrproper | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make bake" | ||
.PHONY: bake build_pdf build_docker_image push_docker_image validate website | ||
.PHONY: print_os_version start_shell printvars show_tools_version mrproper | ||
|
||
.PHONY: build_docker_image | ||
# Dockers targets | ||
build_docker_image: | ||
docker build -t $(DOCKER_IMAGE) -f Dockerfile --progress=plain . | ||
|
||
.PHONY: push_docker_image | ||
push_docker_image: | ||
push_docker_image: build_docker_image | ||
docker push $(DOCKER_IMAGE):latest | ||
|
||
.PHONY: website | ||
website: mrproper | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make website" | ||
# Books/website | ||
|
||
# Quicker run for each commit, shall catch most problems | ||
validate: | ||
$(DOCKER_CMD) "cd /opt/repo/book && make -j build_serif_pdf build_ebook" | ||
|
||
build_pdf: | ||
$(DOCKER_CMD) "cd /opt/repo/book && make" | ||
|
||
bake: | ||
$(DOCKER_CMD) "cd /opt/repo/book && make -j bake" | ||
|
||
.PHONY: validate | ||
validate: mrproper | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make -j build_pdf build_ebook" | ||
website: | ||
$(DOCKER_CMD) "cd /opt/repo/book && make website" | ||
|
||
.PHONY: mrproper | ||
mrproper: | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make mrproper" | ||
$(DOCKER_CMD) "cd /opt/repo/book && make mrproper" | ||
|
||
.PHONY: show_tools_version | ||
# Debug helpers | ||
show_tools_version: | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make show_tools_version" | ||
$(DOCKER_CMD) "cd /opt/repo/book && make show_tools_version" | ||
|
||
.PHONY: printvars | ||
printvars: | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make printvars" | ||
$(DOCKER_CMD) "cd /opt/repo/book && make printvars" | ||
|
||
.PHONY: print_os_version | ||
print_os_version: | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cat /etc/*release" | ||
$(DOCKER_CMD) "cat /etc/*release" | ||
|
||
.PHONY: start_shell | ||
start_shell: | ||
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash |