File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,8 @@ test-e2e: ## Run the e2e tests.
37
37
$(DIR ) /operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE ) $(E2E_REGISTRY_NAME ) $(E2E_REGISTRY_IMAGE )
38
38
cd $(DIR ) /../; \
39
39
go test $(DOWNSTREAM_E2E_FLAGS ) ./test/e2e/...;
40
+
41
+ export GIT_COMMIT := ${SOURCE_GIT_COMMIT}
42
+ PHONY : go-build-local
43
+ go-build-local :
44
+ $(MAKE ) -n -f Makefile go-build-local
Original file line number Diff line number Diff line change 1
1
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
2
2
3
- ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
4
-
5
3
WORKDIR /build
6
4
COPY . .
7
- RUN make go-build-local
5
+ RUN make -f openshift/Makefile go-build-local
8
6
9
7
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
10
8
USER 1001
Original file line number Diff line number Diff line change 1
1
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
2
2
3
- ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
4
-
5
3
WORKDIR /build
6
4
COPY . .
7
- RUN make go-build-local
5
+ RUN make -f openshift/Makefile go-build-local
8
6
9
7
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
10
8
USER 1001
Original file line number Diff line number Diff line change 1
1
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
2
2
3
- ARG SOURCE_GIT_COMMIT
4
- ENV GIT_COMMIT=${SOURCE_GIT_COMMIT}
5
-
6
3
WORKDIR /build
7
4
COPY . .
8
5
# TODO Modify upstream Makefile to separate the 'go build' commands
You can’t perform that action at this time.
0 commit comments