FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=9ef3f62c4b3d7b824c9b0b86c2081d694faff5ea SOURCE_DATE_EPOCH=1568293903 BUILD_VERSION=v4.2.14 SOURCE_GIT_URL=https://github.com/openshift/cluster-svcat-controller-manager-operator SOURCE_GIT_TAG=9ef3f62c BUILD_RELEASE=202001061701
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.2.14.20200106.170123
ENV SOURCE_GIT_COMMIT=9ef3f62c4b3d7b824c9b0b86c2081d694faff5ea SOURCE_DATE_EPOCH=1568293903 BUILD_VERSION=v4.2.14 SOURCE_GIT_URL=https://github.com/openshift/cluster-svcat-controller-manager-operator SOURCE_GIT_TAG=9ef3f62c BUILD_RELEASE=202001061701
COPY --from=builder /go/src/github.com/openshift/cluster-svcat-controller-manager-operator/cluster-svcat-controller-manager-operator /usr/bin/
COPY manifests /manifests

LABEL \
        com.redhat.component="ose-cluster-svcat-controller-manager-operator-container" \
        name="openshift/ose-cluster-svcat-controller-manager-operator" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-svcat-controller-manager-operator" \
        io.openshift.release.operator="true" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-svcat-controller-manager-operator/commit/9ef3f62c4b3d7b824c9b0b86c2081d694faff5ea" \
        version="v4.2.14" \
        io.openshift.build.commit.id="9ef3f62c4b3d7b824c9b0b86c2081d694faff5ea" \
        release="202001061701"

