diff --git a/Makefile b/Makefile index 82c73f4c990..16220b86c34 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ OPERATOR_NAMESPACE ?= redhat-ods-operator DEFAULT_MANIFESTS_PATH ?= opt/manifests CGO_ENABLED ?= 1 CHANNELS="alpha,stable,fast" +USE_LOCAL = false # CHANNELS define the bundle channels used in the bundle. # Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable") @@ -93,7 +94,7 @@ E2E_TEST_FLAGS = "--skip-deletion=false" -timeout 25m # See README.md, default g # Default image-build is to not use local odh-manifests folder # set to "true" to use local instead # see target "image-build" -IMAGE_BUILD_FLAGS ?= --build-arg USE_LOCAL=false +IMAGE_BUILD_FLAGS ?= --build-arg USE_LOCAL=$(USE_LOCAL) IMAGE_BUILD_FLAGS += --build-arg CGO_ENABLED=$(CGO_ENABLED) # Prometheus-Unit Tests Parameters diff --git a/README.md b/README.md index 1de5dba1e90..87e76eb9aed 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,8 @@ make image-build By default, building an image without any local changes(as a clean build) This is what the production build system is doing. -In order to build an image with local `opt/manifests` folder, to set `IMAGE_BUILD_FLAGS ="--build-arg USE_LOCAL=true"` in make. -e.g `make image-build -e IMAGE_BUILD_FLAGS="--build-arg USE_LOCAL=true"` +In order to build an image with local `opt/manifests` folder set `USE_LOCAL` make variable to `true` +e.g `make image-build USE_LOCAL=true"` #### Build Image