cmake: Do not send local context when for make review/reproduce

The Dockerfiles for make review and make reproduce targets do not use
any information from the local taskwarrior git repository. Use
STDIN-based syntax to ensure local context is not sent to the daemon.

See: https://docs.docker.com/engine/reference/commandline/build/#build-with--
This commit is contained in:
Tomas Babej 2021-01-16 12:40:53 -05:00
parent 94a06ed38a
commit c72e1ea379
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -155,13 +155,13 @@ foreach (doc_FILE ${doc_FILES})
endforeach (doc_FILE)
add_custom_command(OUTPUT run-review
COMMAND docker build -f scripts/review-dockerfile --build-arg PR=$(PR) -t taskwarrior-review:$(PR) .
COMMAND docker build --build-arg PR=$(PR) -t taskwarrior-review:$(PR) - < scripts/review-dockerfile
COMMAND docker run --rm --hostname pr-$(PR) -it taskwarrior-review:$(PR) bash || :
)
add_custom_target(review DEPENDS run-review)
add_custom_command(OUTPUT run-reproduce
COMMAND docker build -f scripts/reproduce-dockerfile --build-arg RELEASE=$(RELEASE) -t taskwarrior-reproduce:$(RELEASE) .
COMMAND docker build --build-arg RELEASE=$(RELEASE) -t taskwarrior-reproduce:$(RELEASE) - < scripts/reproduce-dockerfile
COMMAND docker run --rm --hostname tw-$(RELEASE) -it taskwarrior-reproduce:$(RELEASE) bash || :
)
add_custom_target(reproduce DEPENDS run-reproduce)