diff --git a/images/installer-artifacts/Dockerfile.rhel b/images/installer-artifacts/Dockerfile.rhel index 8ab0d8dc340..fc7a59992f8 100644 --- a/images/installer-artifacts/Dockerfile.rhel +++ b/images/installer-artifacts/Dockerfile.rhel @@ -25,8 +25,18 @@ WORKDIR /go/src/github.com/openshift/installer COPY . . RUN GOOS=linux GOARCH=arm64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh -FROM registry.ci.openshift.org/ocp/4.15:installer +FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS builder +ARG TAGS="" +WORKDIR /go/src/github.com/openshift/installer +COPY . . +RUN go run -mod=vendor hack/build-coreos-manifest.go + +FROM registry.ci.openshift.org/ocp/4.15:base COPY --from=macbuilder /go/src/github.com/openshift/installer/bin/openshift-install /usr/share/openshift/mac/openshift-install COPY --from=macarmbuilder /go/src/github.com/openshift/installer/bin/openshift-install /usr/share/openshift/mac_arm64/openshift-install COPY --from=linuxbuilder /go/src/github.com/openshift/installer/bin/openshift-install /usr/share/openshift/linux_amd64/openshift-install COPY --from=linuxarmbuilder /go/src/github.com/openshift/installer/bin/openshift-install /usr/share/openshift/linux_arm64/openshift-install +COPY --from=builder /go/src/github.com/openshift/installer/bin/manifests/ /manifests/ + +# We're not really an operator, we're just getting some data into the release image. +LABEL io.openshift.release.operator=true