diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-02-08 12:49:43 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-02-08 12:49:43 +0100 |
commit | 6cbc2e28609742c086c7a6d87f607d73a9f649c0 (patch) | |
tree | 51e0aa1683e5aaac08e584979d14922a06fda666 | |
parent | Makefile: update recipe names (diff) | |
download | cgitize-6cbc2e28609742c086c7a6d87f607d73a9f649c0.tar.gz cgitize-6cbc2e28609742c086c7a6d87f607d73a9f649c0.zip |
Makefile: split long commands
-rw-r--r-- | Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 |