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:
1 parent
06a9389eb5
commit
94c1c031aa
1 file changed
+4
-1
@@ -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)
|
||||
Reference in new issue
Block a user