Skip to contentSkip to conversation

CI: (More) Always pull base image when building a container

PATCH In review Andrew Cooper 4 participants 4 messages Oct 19, 2023 – Oct 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: (More) Always pull base image when building a container

Repeat c/s 26ecc08b98fc ("automation: Always pull base image when building a container") for the other makefile we've got building containers.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Henry Wang <[email protected]>

For 4.18. This is CI infrastructure, not part of the regular build.

---
 automation/tests-artifacts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/tests-artifacts/Makefile +1 -1
index 8ca71b78adbd..d055cd696bed 100644
@@ -10,7 +10,7 @@ help:
 	@echo "To push container builds, set the env var PUSH"
 
 %: %.dockerfile ## Builds containers
-	docker build -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D)
+	docker build --pull -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D)
 	@if [ ! -z $${PUSH+x} ]; then \
 		docker push $(REGISTRY)/$(@D):$(@F); \
 	fi

base-commit: 698b0f5031c6083401234a9b9415175cc5855a0a
prerequisite-patch-id: 94c86c1b3eb7aeda8eeef91241cdc8fa2691e2bc
prerequisite-patch-id: 728853399bfbaf972317a0d35ecd695f65026844
prerequisite-patch-id: 5a145a4decd44ace43a37b0315773e0abc6d54c6
prerequisite-patch-id: 24fad994d25558a45bbd3ead38120c154a974e9a
prerequisite-patch-id: a2a69b5382a293809a03633fd0513c371f9cf668

Signature · 1 line
2.30.2
#3 lore raw

Hi all,

Quoted 7 lines · Stefano Stabellini
Quoted 4 lines · Anthony PERARD
Quoted 3 lines · Andrew Cooper

Repeat c/s 26ecc08b98fc ("automation: Always pull base image when building a container") for the other makefile we've got building containers.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

---

For 4.18. This is CI infrastructure, not part of the regular build.

Kind regards,
Henry