Skip to content

Commit

Permalink
Try to cache docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Dec 29, 2022
1 parent d855eff commit 9d9ca46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion multidim-interop/go/v0.22/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image.json: Dockerfile main.go go.mod go.sum
echo "{\"imageID\": \"$(shell docker build . -q)\"}" > $@
echo "{\"imageID\": \"$(shell IMAGE_NAME=$@ ../../dockerBuildWrapper.sh . -q)\"}" > $@

.PHONY: clean

Expand Down
2 changes: 1 addition & 1 deletion multidim-interop/go/v0.24/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image.json: Dockerfile main.go go.mod go.sum
echo "{\"imageID\": \"$(shell docker build . -q)\"}" > $@
echo "{\"imageID\": \"$(shell IMAGE_NAME=$@ ../../dockerBuildWrapper.sh . -q)\"}" > $@

.PHONY: clean

Expand Down
4 changes: 2 additions & 2 deletions multidim-interop/rust/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ all: v0.49/image.json v0.50/image.json

v0.49/image.json: Dockerfile src/*/*.rs src/*.rs Cargo.lock Cargo.toml
mkdir -p $(shell dirname $@)
echo "{\"imageID\": \"$(shell docker build . -q --build-arg BINARY_NAME=testplan_0490)\"}" > $@
echo "{\"imageID\": \"$(shell IMAGE_NAME=$@ ../dockerBuildWrapper.sh -q . --build-arg BINARY_NAME=testplan_0490)\"}" > $@

v0.50/image.json: Dockerfile src/*/*.rs src/*.rs Cargo.lock Cargo.toml
mkdir -p $(shell dirname $@)
echo "{\"imageID\": \"$(shell docker build . -q --build-arg BINARY_NAME=testplan_0500)\"}" > $@
echo "{\"imageID\": \"$(shell IMAGE_NAME=$@ ../dockerBuildWrapper.sh -q . --build-arg BINARY_NAME=testplan_0500)\"}" > $@

clean:
rm v0.49/image.json
Expand Down

0 comments on commit 9d9ca46

Please sign in to comment.