Skip to content

Commit c4dedbc

Browse files
committed
Fix local build scripts
1 parent 099dce6 commit c4dedbc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ bundle-build: ## Build the bundle image.
303303

304304
.PHONY: bundle-push
305305
bundle-push: ## Push the bundle image.
306-
$(MAKE) docker-push IMG=$(BUNDLE_IMG)
306+
docker push $(BUNDLE_IMG)
307307

308308
.PHONY: csv-date
309309
csv-date: ## Set createdAt date in the CSV.
@@ -362,7 +362,7 @@ catalog-build: opm ## Build an OLM catalog image (for testing).
362362

363363
.PHONY: catalog-push
364364
catalog-push: ## Push the OLM catalog image (for testing).
365-
$(MAKE) docker-push IMG=$(CATALOG_IMG)
365+
docker push $(CATALOG_IMG)
366366

367367
.PHONY: catalog-install
368368
catalog-install: config/samples/pattern-catalog-$(VERSION).yaml ## Install the OLM catalog on a cluster (for testing).

hack/operator-build-deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ NS="openshift-operators"
66
OPERATOR="patterns-operator"
77
VERSION="${VERSION:-6.6.6}"
88
REGISTRY="${REGISTRY:-kuemper.int.rhx/bandini}"
9+
UPLOADREGISTRY="${UPLOADREGISTRY:-kuemper.int.rhx/bandini}"
910

1011
wait_for_resource() {
1112
local resource_type=$1 # Either "packagemanifest", "operator", or "csv"
@@ -74,7 +75,7 @@ if [ $ret -ne 0 ]; then
7475
exit 1
7576
fi
7677

77-
make VERSION=${VERSION} IMAGE_TAG_BASE=${REGISTRY}/patterns-operator CHANNELS=fast USE_IMAGE_DIGESTS="" \
78+
make VERSION=${VERSION} UPLOADREGISTRY="${UPLOADREGISTRY}" IMAGE_TAG_BASE=${REGISTRY}/patterns-operator CHANNELS=fast USE_IMAGE_DIGESTS="" \
7879
manifests bundle generate docker-build docker-push bundle-build bundle-push catalog-build \
7980
catalog-push catalog-install
8081

0 commit comments

Comments
 (0)