Skip to content

Commit 3a27f6e

Browse files
alicefrjlebon
authored andcommitted
Makefile: add build-update-image target for update testing
Move the update image build logic out of e2e test code and into a Makefile target. Build the update image as part of deploy-bink so it is available for both manual testing and e2e tests. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 150fb4b commit 3a27f6e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ build-daemon: ## Build daemon binary.
8787
buildimg: ## Build container image.
8888
$(CONTAINER_TOOL) build -t $(IMG) .
8989

90+
.PHONY: build-update-image
91+
build-update-image: ## Build a derived node image for update testing and push to bink registry.
92+
@printf 'FROM localhost:5000/node:latest\nRUN touch /usr/share/update-marker\n' | \
93+
podman build -t localhost:5000/node:update -f - .
94+
podman push --tls-verify=false localhost:5000/node:update
95+
9096
##@ Deployment
9197

9298
ifndef ignore-not-found
@@ -135,7 +141,7 @@ start-bink: seed-node-image ## Start a bink cluster (idempotent).
135141
kubectl --kubeconfig $(KUBECONFIG_BINK) wait --for=condition=Ready node/controller --timeout=5m
136142

137143
.PHONY: deploy-bink
138-
deploy-bink: start-bink kustomize ## Deploy to a bink cluster (requires: buildimg).
144+
deploy-bink: start-bink build-update-image kustomize ## Deploy to a bink cluster (requires: buildimg).
139145
podman push --tls-verify=false $(IMG) localhost:5000/bootc-operator-e2e:latest
140146
# On re-deploy, restart the rollout to force a re-pull of the :latest tag.
141147
# On fresh deploy, skip the restart -- the pod is already pulling the correct image.

0 commit comments

Comments
 (0)