Skip to content

Commit 9426ce0

Browse files
fix: publish step
1 parent 1caa15e commit 9426ce0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,16 @@ generate-test-crs:
274274
envsubst < "$$template" > "$${template}.tmp" && mv "$${template}.tmp" "$$template"; \
275275
done' sh {} +
276276
@echo crs generated
277+
278+
279+
PUBLISH_IMAGES ?= crossplane/provider-btp crossplane/provider-btp-controller
280+
281+
.PONY: publish
282+
publish:
283+
@$(INFO) "Publishing images $(PUBLISH_IMAGES) to $(DOCKER_REGISTRY)"
284+
@for image in $(PUBLISH_IMAGES); do \
285+
echo "Publishing image $(DOCKER_REGISTRY)/$${image}:$(VERSION)"; \
286+
docker push $(DOCKER_REGISTRY)/$${image}:$(VERSION); \
287+
done
288+
@$(OK) "Publishing images $(PUBLISH_IMAGES) to $(DOCKER_REGISTRY)"
289+

0 commit comments

Comments
 (0)