Skip to content

Commit e54b66a

Browse files
committed
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 7494b39 commit e54b66a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ build-daemon: ## Build daemon binary.
8585
buildimg: ## Build container image.
8686
$(CONTAINER_TOOL) build -t $(IMG) .
8787

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

9096
ifndef ignore-not-found
@@ -135,6 +141,7 @@ start-bink: seed-node-image ## Start a bink cluster (idempotent).
135141

136142
.PHONY: deploy-bink
137143
deploy-bink: start-bink kustomize ## Deploy to a bink cluster (requires: buildimg).
144+
$(MAKE) build-update-image
138145
podman push --tls-verify=false $(IMG) localhost:5000/bootc-operator-e2e:latest
139146
@existed=$$(kubectl --kubeconfig $(KUBECONFIG_BINK) -n bootc-operator get deploy bootc-operator-controller-manager -o name 2>/dev/null || true) && \
140147
$(MAKE) deploy KUBECONFIG=$(abspath $(KUBECONFIG_BINK)) IMG=$(IMG_BINK) && \

0 commit comments

Comments
 (0)