@@ -26,8 +26,7 @@ DATA_NS ?= $(CONTROL_NS)
26
26
WATCH_NS ?= $(DATA_NS )
27
27
28
28
GIT_COMMIT_ID =$(shell git rev-parse --short HEAD)
29
- GIT_REMOTE_URL =$(shell git config --get remote.origin.url)
30
- IMAGE_BUILD_OPTS =--build-arg "VCS_REF=$(GIT_COMMIT_ID ) " --build-arg "VCS_URL=$(GIT_REMOTE_URL ) " --build-arg "IMG_VERSION=$(VERSION ) " --build-arg "IMG_RELEASE=$(shell date +% s) "
29
+ IMAGE_BUILD_OPTS =--build-arg "VCS_REF=$(GIT_COMMIT_ID ) " --build-arg "IMG_VERSION=$(VERSION ) " --build-arg "IMG_RELEASE=$(shell date +% s) "
31
30
32
31
# Image URL to use all building/pushing image targets;
33
32
# Use your own docker registry and image name for dev/test by overridding the IMG and REGISTRY environment variable.
@@ -37,9 +36,6 @@ CONTAINER_CLI ?= docker
37
36
38
37
MARKDOWN_LINT_WHITELIST =https://quay.io/cnr
39
38
40
- ifeq ($(BUILD_LOCALLY ) ,0)
41
- export CONFIG_DOCKER_TARGET = config-docker
42
- endif
43
39
44
40
TESTARGS_DEFAULT := "-v"
45
41
export TESTARGS ?= $(TESTARGS_DEFAULT )
@@ -414,7 +410,7 @@ bundle-render: ## Render the bundle contents into the local FBC index.
414
410
./hack/bundle-render $(IMG ) .v$(BUNDLE_VERSION ) $(BUNDLE_IMG )
415
411
416
412
TARGET_ARCH =$(LOCAL_ARCH )
417
- build-image : $(GO ) $( CONFIG_DOCKER_TARGET ) licenses-dir # # Build the Operator manager image
413
+ build-image : $(GO ) licenses-dir # # Build the Operator manager image
418
414
@echo " Building manager binary for linux/$( TARGET_ARCH) "
419
415
@CGO_ENABLED=0 GOOS=linux GOARCH=$(TARGET_ARCH ) $(GO ) build -a -o build/_output/bin/manager cmd/main.go
420
416
@echo " Building manager image for linux/$( TARGET_ARCH) "
@@ -437,11 +433,13 @@ build-image-ppc64le: build-image
437
433
build-image-s390x : TARGET_ARCH=s390x
438
434
build-image-s390x : build-image
439
435
440
- images : $( CONFIG_DOCKER_TARGET ) # # Build the multi-arch manifest.
436
+ images :
441
437
@${MAKE} build-image-amd64
442
438
@${MAKE} build-image-ppc64le
443
439
@${MAKE} build-image-s390x
444
- @DOCKER_BUILDKIT=1 MAX_PULLING_RETRY=20 RETRY_INTERVAL=30 common/scripts/multiarch_image.sh $(REGISTRY ) $(IMG ) $(GIT_COMMIT_ID ) $(VERSION )
440
+ @if [ " $( SPS_EVENT_TYPE) " = " push" ]; then \
441
+ DOCKER_BUILDKIT=1 MAX_PULLING_RETRY=20 RETRY_INTERVAL=30 common/scripts/multiarch_image.sh $(REGISTRY ) $(IMG ) $(GIT_COMMIT_ID ) $(VERSION ) ; \
442
+ fi
445
443
446
444
# #@ Deployment
447
445
0 commit comments