Skip to content

Commit 3afbdb1

Browse files
Adding latest tag for catalog index image
Signed-off-by: Varad Ahirwadkar <[email protected]>
1 parent 4aad833 commit 3afbdb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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).
292292
CATALOG_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.
295296
ifneq ($(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
318320
catalog-push: ## Push a catalog image.
321+
$(MAKE) docker-push IMG=$(CATALOG_IMG_LATEST)
319322
$(MAKE) docker-push IMG=$(CATALOG_IMG)

0 commit comments

Comments
 (0)