aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-02-08 12:49:43 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-02-08 12:49:43 +0100
commit6cbc2e28609742c086c7a6d87f607d73a9f649c0 (patch)
tree51e0aa1683e5aaac08e584979d14922a06fda666
parentMakefile: update recipe names (diff)
downloadcgitize-6cbc2e28609742c086c7a6d87f607d73a9f649c0.tar.gz
cgitize-6cbc2e28609742c086c7a6d87f607d73a9f649c0.zip
Makefile: split long commands
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7c92d1d..2cec50b 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,8 @@ login:
ifndef DOCKER_PASSWORD
$(error Please define DOCKER_PASSWORD)
endif
- @echo '$(call escape,$(DOCKER_PASSWORD))' | docker login --username '$(call escape,$(DOCKER_USERNAME))' --password-stdin
+ @echo '$(call escape,$(DOCKER_PASSWORD))' \
+ | docker login --username '$(call escape,$(DOCKER_USERNAME))' --password-stdin
.PHONY: build
# Build natively by default.
@@ -91,11 +92,22 @@ buildx/rm:
.PHONY: buildx/build
buildx/build:
- docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$(call escape,$(PROJECT))' -f docker/Dockerfile --platform '$(call escape,$(PLATFORMS))' --progress plain .
+ docker buildx build \
+ -t '$(call escape,$(DOCKER_USERNAME)/$(PROJECT))' \
+ -f docker/Dockerfile \
+ --platform '$(call escape,$(PLATFORMS))' \
+ --progress plain \
+ .
.PHONY: buildx/push
buildx/push:
- docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$(call escape,$(PROJECT))' -f docker/Dockerfile --platform '$(call escape,$(PLATFORMS))' --progress plain --push .
+ docker buildx build \
+ -t '$(call escape,$(DOCKER_USERNAME)/$(PROJECT))' \
+ -f docker/Dockerfile \
+ --platform '$(call escape,$(PLATFORMS))' \
+ --progress plain \
+ --push \
+ .
venv_dir := .venv