diff --git a/Dockerfile b/Dockerfile index 68427a5d5..d87f3a6c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ WORKDIR /go/src/github.com/openshift/cluster-version-operator COPY . . RUN hack/build-go.sh; \ mkdir -p /tmp/build; \ - cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator + cp _output/linux/$(go env GOARCH)/cluster-version-operator _output/linux/$(go env GOARCH)/cluster-version-operator-tests.gz /tmp/build/ FROM registry.access.redhat.com/ubi9/ubi-minimal:latest -COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/ +COPY --from=builder /tmp/build/cluster-version-operator /tmp/build/cluster-version-operator-tests.gz /usr/bin/ COPY install /manifests COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/ COPY vendor/github.com/openshift/api/operator/v1alpha1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/ diff --git a/Dockerfile.rhel b/Dockerfile.rhel index fede93ee8..26c7e6c6f 100644 --- a/Dockerfile.rhel +++ b/Dockerfile.rhel @@ -3,10 +3,10 @@ WORKDIR /go/src/github.com/openshift/cluster-version-operator COPY . . RUN hack/build-go.sh; \ mkdir -p /tmp/build; \ - cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator + cp _output/linux/$(go env GOARCH)/cluster-version-operator _output/linux/$(go env GOARCH)/cluster-version-operator-tests.gz /tmp/build/ FROM registry.ci.openshift.org/ocp/4.21:base-rhel9 -COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/ +COPY --from=builder /tmp/build/cluster-version-operator /tmp/build/cluster-version-operator-tests.gz /usr/bin/ COPY install /manifests COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/ COPY vendor/github.com/openshift/api/operator/v1alpha1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/