Skip to content

Commit f3bd130

Browse files
authored
allow custom registry (#292)
1 parent 9ea9deb commit f3bd130

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ COMMAND_ARGS ?=
2626
K8S_CLI_BIN_PATH = $(shell which oc 2>/dev/null || which kubectl)
2727
K8S_CLI_BIN ?= $(shell basename ${K8S_CLI_BIN_PATH})
2828

29+
# Image registry such as quay or docker
30+
IMAGE_REGISTRY ?= quay.io
31+
2932
# IMAGE_TAG_BASE defines the namespace and part of the image name for remote images.
30-
IMAGE_TAG_BASE ?= quay.io/$(IMAGE_ORG)/$(NAME)
33+
IMAGE_TAG_BASE ?= $(IMAGE_REGISTRY)/$(IMAGE_ORG)/$(NAME)
3134

3235
# Image URL to use all building/pushing image targets
3336
IMAGE ?= $(IMAGE_TAG_BASE):$(VERSION)
3437
PULL_POLICY ?=Always
38+
3539
# Agent image URL to deploy
36-
AGENT_IMAGE ?= quay.io/netobserv/netobserv-ebpf-agent:main
40+
AGENT_IMAGE ?= $(IMAGE_REGISTRY)/netobserv/netobserv-ebpf-agent:main
3741

3842
# Image building tool (docker / podman) - docker is preferred in CI
3943
OCI_BIN_PATH := $(shell which docker 2>/dev/null || which podman)

0 commit comments

Comments
 (0)