mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
automation: Always pull base image when building a container
Ask docker to check if there's an update of the base image to avoid using an old container cached locally. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
976ae57b30
commit
26ecc08b98
1 file changed
+1
-1
@@ -16,7 +16,7 @@ help:
|
||||
include yocto/yocto.inc
|
||||
|
||||
%: %.dockerfile ## Builds containers
|
||||
$(DOCKER_CMD) build -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D)
|
||||
$(DOCKER_CMD) build --pull -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D)
|
||||
@if [ ! -z $${PUSH+x} ]; then \
|
||||
$(DOCKER_CMD) push $(REGISTRY)/$(@D):$(@F); \
|
||||
fi
|
||||
|
||||