File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ BUNDLE_IMGS ?= $(BUNDLE_IMG)
290290
291291# The image tag given to the resulting catalog image (e.g. make catalog-build CATALOG_IMG=example.com/operator-catalog:v0.2.0).
292292CATALOG_IMG ?= $(IMAGE_TAG_BASE ) -catalog:v$(VERSION )
293+ CATALOG_IMG_LATEST ?= $(IMAGE_TAG_BASE ) -catalog:latest
293294
294295# Set CATALOG_BASE_IMG to an existing catalog image tag to add $BUNDLE_IMGS to that image.
295296ifneq ($(origin CATALOG_BASE_IMG ) , undefined)
@@ -310,10 +311,12 @@ catalog-build: opm ## Build a catalog image.
310311 echo "FROM quay.io/operator-framework/opm:$(OPM_VERSION)-ppc64le" >> $(TMP_DIR).Dockerfile
311312 cat catalog/Dockerfile_final_stage >> $(TMP_DIR).Dockerfile
312313 # # Building catalog image
313- $(CONTAINER_TOOL) build -f $(TMP_DIR).Dockerfile -t $(CATALOG_IMG) .
314+ $(CONTAINER_TOOL) build -f $(TMP_DIR).Dockerfile -t $(CATALOG_IMG) -t $(CATALOG_IMG_LATEST) .
314315 rm -rf $(TMP_DIR)
316+ rm -rf $(TMP_DIR).Dockerfile
315317
316318# Push the catalog image.
317319.PHONY : catalog-push
318320catalog-push : # # Push a catalog image.
321+ $(MAKE ) docker-push IMG=$(CATALOG_IMG_LATEST )
319322 $(MAKE ) docker-push IMG=$(CATALOG_IMG )
You can’t perform that action at this time.
0 commit comments