Skip to content

Commit

Permalink
fix consumer image build (#364)
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Ding <[email protected]>
  • Loading branch information
jzding authored Oct 18, 2024
1 parent 614576c commit 289f4cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/consumer.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
ENV GO111MODULE=on
ENV CGO_ENABLED=1
ENV COMMON_GO_ARGS=-race
Expand All @@ -9,7 +9,7 @@ COPY . .

RUN hack/build-example-go.sh

FROM --platform=linux/x86_64 registry.ci.openshift.org/ocp/4.17:base-rhel9 AS bin
FROM --platform=linux/x86_64 registry.ci.openshift.org/ocp/4.16:base-rhel9 AS bin
COPY --from=builder /go/src/github.com/redhat-cne/cloud-event-proxy/build/cloud-event-consumer /

LABEL io.k8s.display-name="Cloud Event Proxy Sample Consumer" \
Expand Down
4 changes: 2 additions & 2 deletions examples/consumer.Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Used by quay.io to trigger developer builds
FROM quay.io/redhat-cne/openshift-origin-release:rhel-9-golang-1.22-openshift-4.17 AS builder
FROM quay.io/redhat-cne/openshift-origin-release:rhel-9-golang-1.21-openshift-4.16 AS builder
ENV GO111MODULE=on
ENV CGO_ENABLED=1
ENV COMMON_GO_ARGS=-race
Expand All @@ -10,7 +10,7 @@ COPY . .

RUN hack/build-example-go.sh

FROM --platform=linux/x86_64 quay.io/redhat-cne/openshift-origin-release:base-rhel9-4.17 AS bin
FROM --platform=linux/x86_64 quay.io/redhat-cne/openshift-origin-release:base-rhel9-4.16 AS bin
COPY --from=builder /go/src/github.com/redhat-cne/cloud-event-proxy/build/cloud-event-consumer /

LABEL io.k8s.display-name="Cloud Event Proxy Sample Consumer" \
Expand Down

0 comments on commit 289f4cf

Please sign in to comment.