FROM openshift/golang-builder:1.13 AS builder
ENV __doozer=update BUILD_RELEASE=202004261927 BUILD_VERSION=v4.4.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=4 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.4.0-202004261927 
ENV __doozer=merge OS_GIT_COMMIT=92850d6 OS_GIT_VERSION=4.4.0-202004261927-92850d6 SOURCE_DATE_EPOCH=1586519764 SOURCE_GIT_COMMIT=92850d629fe368ec58ea1348a3dbfb4326e29424 SOURCE_GIT_TAG=92850d62 SOURCE_GIT_URL=https://github.com/openshift/cluster-etcd-operator 
WORKDIR /go/src/github.com/openshift/cluster-etcd-operator
COPY . .
ENV GO_PACKAGE github.com/openshift/cluster-etcd-operator
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.4.0.20200426.192717
ENV __doozer=update BUILD_RELEASE=202004261927 BUILD_VERSION=v4.4.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=4 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.4.0-202004261927 
ENV __doozer=merge OS_GIT_COMMIT=92850d6 OS_GIT_VERSION=4.4.0-202004261927-92850d6 SOURCE_DATE_EPOCH=1586519764 SOURCE_GIT_COMMIT=92850d629fe368ec58ea1348a3dbfb4326e29424 SOURCE_GIT_TAG=92850d62 SOURCE_GIT_URL=https://github.com/openshift/cluster-etcd-operator 
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/bindata/bootkube/bootstrap-manifests /usr/share/bootkube/manifests/bootstrap-manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/bindata/bootkube/config /usr/share/bootkube/manifests/config/
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/bindata/bootkube/manifests /usr/share/bootkube/manifests/manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/cluster-etcd-operator /usr/bin/
COPY manifests/ /manifests

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-etcd-operator" \
        com.redhat.component="cluster-etcd-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Etcd" \
        version="v4.4.0" \
        release="202004261927" \
        io.openshift.build.commit.id="92850d629fe368ec58ea1348a3dbfb4326e29424" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-etcd-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-etcd-operator/commit/92850d629fe368ec58ea1348a3dbfb4326e29424"

