FROM openshift/golang-builder:1.12 AS builder
ENV __doozer=update BUILD_RELEASE=202006211650.p0 BUILD_VERSION=v4.3.27 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=27 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.27-202006211650.p? 
ENV __doozer=merge OS_GIT_COMMIT=727d37d OS_GIT_VERSION=4.3.27-202006211650.p?-727d37d SOURCE_DATE_EPOCH=1575336929 SOURCE_GIT_COMMIT=727d37d929cb388744362c98fbcaf9ef547cd4b6 SOURCE_GIT_TAG=727d37d9 SOURCE_GIT_URL=https://github.com/openshift/cluster-svcat-controller-manager-operator 
WORKDIR /go/src/github.com/openshift/cluster-svcat-controller-manager-operator
COPY . .
RUN GODEBUG=tls13=1 go build ./cmd/cluster-svcat-controller-manager-operator

FROM openshift/ose-base:v4.3.27.20200621.173109
ENV __doozer=update BUILD_RELEASE=202006211650.p0 BUILD_VERSION=v4.3.27 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=27 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.27-202006211650.p? 
ENV __doozer=merge OS_GIT_COMMIT=727d37d OS_GIT_VERSION=4.3.27-202006211650.p?-727d37d SOURCE_DATE_EPOCH=1575336929 SOURCE_GIT_COMMIT=727d37d929cb388744362c98fbcaf9ef547cd4b6 SOURCE_GIT_TAG=727d37d9 SOURCE_GIT_URL=https://github.com/openshift/cluster-svcat-controller-manager-operator 
COPY --from=builder /go/src/github.com/openshift/cluster-svcat-controller-manager-operator/cluster-svcat-controller-manager-operator /usr/bin/
COPY manifests /manifests
COPY vendor/github.com/openshift/api/operator/v1/0000_50_cluster-svcat-controller-manager-operator_02_config.crd.yaml /manifests

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-svcat-controller-manager-operator" \
        com.redhat.component="ose-cluster-svcat-controller-manager-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Service Catalog" \
        version="v4.3.27" \
        release="202006211650.p0" \
        io.openshift.build.commit.id="727d37d929cb388744362c98fbcaf9ef547cd4b6" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-svcat-controller-manager-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-svcat-controller-manager-operator/commit/727d37d929cb388744362c98fbcaf9ef547cd4b6"

