build: add rebuild option to build container

this will always build the container from scratch and avoid caching in docker
This commit is contained in:
Bassam Tabbara committed 2016-11-14 12:54:02 -08:00
1 parent 06a9389eb5
commit 94c1c031aa
1 file changed
+4 -1
+4 -1
View File
@@ -19,7 +19,10 @@ VERSION := $(shell cat version)
CONTAINER := quay.io/rook/cross-build:$(VERSION)
build: Dockerfile entrypoint.sh
@docker build ${BUILD_ARGS} -t $(CONTAINER) --pull $(CURDIR)
@docker build ${BUILD_ARGS} -t $(CONTAINER) $(CURDIR)
rebuild: Dockerfile entrypoint.sh
@docker build --no-cache --pull ${BUILD_ARGS} -t $(CONTAINER) $(CURDIR)
publish: build
docker push $(CONTAINER)