Skip to content

Commit a4f440b

Browse files
ankitathomasci-robot
authored andcommitted
UPSTREAM: <carry>: add openshift specific build target to pass commit info downstream
Signed-off-by: Ankita Thomas <[email protected]>
1 parent 0a965c1 commit a4f440b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

openshift/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ test-experimental-e2e: ## Run the experimental e2e tests.
4545
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME) $(E2E_REGISTRY_IMAGE)
4646
cd $(DIR)/../; \
4747
go test $(DOWNSTREAM_EXPERIMENTAL_E2E_FLAGS) ./test/experimental-e2e/...;
48+
49+
export GIT_COMMIT := ${SOURCE_GIT_COMMIT}
50+
PHONY: go-build-local
51+
go-build-local:
52+
$(MAKE) -n -f Makefile go-build-local

openshift/catalogd.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.20 AS
33
ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
44
WORKDIR /build
55
COPY . .
6-
RUN make go-build-local
6+
RUN make -f openshift/Makefile go-build-local
77

88
FROM registry.ci.openshift.org/ocp/4.20:base-rhel9
99
USER 1001

openshift/operator-controller.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.20 AS
33
ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
44
WORKDIR /build
55
COPY . .
6-
RUN make go-build-local && \
6+
RUN make -f openshift/Makefile go-build-local && \
77
# Build the OLMv1 Test Extension binary.
88
# This is used by openshift/origin to allow us to register the OLMv1 test extension
99
# The binary needs to be added in the component image and OCP image

0 commit comments

Comments
 (0)