Skip to content

Commit ad7afc1

Browse files
committed
allow custom registry
1 parent 489bd5d commit ad7afc1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ SHELL := /usr/bin/env bash
1515
# In CI, to be replaced by `netobserv`
1616
IMAGE_ORG ?= $(USER)
1717

18+
# Image registry such as quay or docker
19+
IMAGE_REGISTRY ?= quay.io
20+
1821
# IMAGE_TAG_BASE defines the namespace and part of the image name for remote images.
19-
IMAGE_TAG_BASE ?= quay.io/${IMAGE_ORG}/network-observability-console-plugin
22+
IMAGE_TAG_BASE ?= $(IMAGE_REGISTRY)/${IMAGE_ORG}/network-observability-console-plugin
2023

2124
# Standalone `true` is used to build frontend outside of OCP Console environment
2225
# see .mk/standalone.mk
2326
STANDALONE ?= false
2427

2528
ifeq (${STANDALONE}, true)
2629
BUILDSCRIPT = :standalone
27-
IMAGE_TAG_BASE := quay.io/${IMAGE_ORG}/network-observability-standalone-frontend
30+
IMAGE_TAG_BASE := $(IMAGE_REGISTRY)/${IMAGE_ORG}/network-observability-standalone-frontend
2831
endif
2932

3033
# Image URL to use all building/pushing image targets

0 commit comments

Comments
 (0)