Skip to content

Commit 3823515

Browse files
Merge pull request #106 from varad-ahirwadkar/catalog
Adding a new variable PREVIOUS_IMAGE_TAG_BASE in Makefile
2 parents beb29c0 + 59cb0f0 commit 3823515

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
3030
#
3131
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
3232
IMAGE_TAG_BASE ?= ghcr.io/ocp-power-automation/rsct-operator
33+
PREVIOUS_IMAGE_TAG_BASE ?= ghcr.io/ocp-power-automation/rsct-operator
3334

3435
# BUNDLE_IMG defines the image:tag used for the bundle.
3536
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
@@ -292,7 +293,7 @@ BUNDLE_IMGS ?= $(BUNDLE_IMG)
292293
# The image tag given to the resulting catalog image (e.g. make catalog-build CATALOG_IMG=example.com/operator-catalog:v0.2.0).
293294
CATALOG_IMG ?= $(IMAGE_TAG_BASE)-catalog:v$(VERSION)
294295
CATALOG_IMG_LATEST ?= $(IMAGE_TAG_BASE)-catalog:latest
295-
CATALOG_PREVIOUS_IMG ?= $(IMAGE_TAG_BASE)-catalog:v$(PREVIOUS_VERSION)
296+
CATALOG_PREVIOUS_IMG ?= $(PREVIOUS_IMAGE_TAG_BASE)-catalog:v$(PREVIOUS_VERSION)
296297

297298
# Set CATALOG_BASE_IMG to an existing catalog image tag to add $BUNDLE_IMGS to that image.
298299
ifneq ($(origin CATALOG_BASE_IMG), undefined)

0 commit comments

Comments
 (0)