Skip to content

Commit 4778099

Browse files
committed
Docker: leave artifacts when build targets succeed
1 parent 8eb5d12 commit 4778099

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/docker/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ Dockerfile.%: ../../version template.Dockerfile
136136
build-%: Dockerfile.%
137137
docker pull $(CONTAINER_$*)
138138
docker build --no-cache -t unit:$(VERSION)-$* -f Dockerfile.$* .
139+
touch $@
139140
140141
library:
141142
@echo "# this file is generated via https://github.com/nginx/unit/blob/$(shell git describe --always --abbrev=0 HEAD)/pkg/docker/Makefile"
@@ -178,5 +179,6 @@ all: $(addprefix Dockerfile., $(MODVERSIONS))
178179
179180
clean:
180181
rm -f Dockerfile.*
182+
rm -f build-*
181183
182184
.PHONY: default build dockerfiles clean library

0 commit comments

Comments
 (0)